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

Method subtract

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

Returns a new vector that is the result of this - c @param c the constant to subtract @return the result of this - c

(double c)

Source from the content-addressed store, hash-verified

155 * @return the result of {@code this - c}
156 */
157 public Vec subtract(double c)
158 {
159 return add(-c);
160 }
161
162 /**
163 * Returns a new vector that is the result of {@code this - b}

Callers 15

setUpMethod · 0.95
passTestMethod · 0.95
trainCMethod · 0.95
trainMethod · 0.95
trainMethod · 0.95
testSolveCGNR_4argsMethod · 0.45
testWarmOtherMethod · 0.45
testWarmOtherMethod · 0.45
testCluster_WeightedMethod · 0.45
testCluster_WeightedMethod · 0.45
testCluster_WeightedMethod · 0.45

Calls 3

addMethod · 0.95
getThisSideMethod · 0.95
mutableSubtractMethod · 0.95

Tested by 10

setUpMethod · 0.76
passTestMethod · 0.76
testSolveCGNR_4argsMethod · 0.36
testWarmOtherMethod · 0.36
testWarmOtherMethod · 0.36
testCluster_WeightedMethod · 0.36
testCluster_WeightedMethod · 0.36
testCluster_WeightedMethod · 0.36
testSubtractMethod · 0.36