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

Method mutableAdd

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

Alters this vector such that this = this + c This method should be overloaded for a serious implementation. @param c a scalar constant to add to each value in this vector

(double c)

Source from the content-addressed store, hash-verified

288 * @param c a scalar constant to add to each value in this vector
289 */
290 public void mutableAdd(double c)
291 {
292 for(int i = 0; i < length(); i++)
293 increment(i, c);
294 }
295 /**
296 * Alters this vector such that
297 * <tt>this</tt> = <tt>this</tt> + <tt>c</tt> * <tt>b</tt>

Callers 15

testGetSqrdNormMethod · 0.95
testDot_KernelPointMethod · 0.95
testDot_VecMethod · 0.95
testDistance_VecMethod · 0.95
multiplyMethod · 0.95
transposeMultiplyMethod · 0.95
addMethod · 0.95
mutableSubtractMethod · 0.95
solveMethod · 0.95
runMethod · 0.95
trainCMethod · 0.95

Calls 6

lengthMethod · 0.95
incrementMethod · 0.95
isSparseMethod · 0.45
getIndexMethod · 0.45
getValueMethod · 0.45
getMethod · 0.45