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

Method add

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

Returns a new vector that is the result of this + c @param c the constant to add @return the result of adding c to this

(double c)

Source from the content-addressed store, hash-verified

131 * @return the result of adding {@code c} to {@code this}
132 */
133 public Vec add(double c)
134 {
135 Vec toRet = this.getThisSide(null);
136 toRet.mutableAdd(c);
137 return toRet;
138 }
139
140 /**
141 * Returns a new vector that is the result of {@code this + b}

Callers 15

subtractMethod · 0.95
testSubSetMethod · 0.45
testHeadSetMethod · 0.45
testTailSetMethod · 0.45
runSmallGambitMethod · 0.45
testDecreaseKeyMethod · 0.45
testUnionMethod · 0.45
testSortDPMethod · 0.45
testSortFPMethod · 0.45
setUpMethod · 0.45
setUpClassMethod · 0.45

Calls 2

getThisSideMethod · 0.95
mutableAddMethod · 0.95

Tested by 15

testSubSetMethod · 0.36
testHeadSetMethod · 0.36
testTailSetMethod · 0.36
runSmallGambitMethod · 0.36
testDecreaseKeyMethod · 0.36
testUnionMethod · 0.36
testSortDPMethod · 0.36
testSortFPMethod · 0.36
setUpMethod · 0.36
setUpClassMethod · 0.36
setUpClassMethod · 0.36