MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / mutableMultiply

Method mutableMultiply

JSAT/src/jsat/linear/Vec.java:383–387  ·  view source on GitHub ↗

Mutates this = c This method should be overloaded for a serious implementation. @param c the constant to multiply by

(double c)

Source from the content-addressed store, hash-verified

381 * @param c the constant to multiply by
382 */
383 public void mutableMultiply(double c)
384 {
385 for(int i = 0; i < length(); i++)
386 set(i, get(i)*c);
387 }
388
389 /**
390 * Mutates {@code this} by dividing each value by the value in {@code b}

Callers 15

multiplyMethod · 0.95
solveMethod · 0.95
runMethod · 0.95
runMethod · 0.95
updateMethod · 0.95
classifyMethod · 0.95
applyRegularizationMethod · 0.95
runMethod · 0.95
clusterMethod · 0.95
fitMethod · 0.95
runMethod · 0.95
optimizeMethod · 0.95

Calls 3

lengthMethod · 0.95
setMethod · 0.95
getMethod · 0.95