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

Method divide

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

Returns a new vector that is the result of this / c @param c the constant to divide by @return the result of this / c

(double c)

Source from the content-addressed store, hash-verified

273 * @return the result of {@code this / c}
274 */
275 public Vec divide(double c)
276 {
277 Vec toRet = this.getThisSide(null);
278 toRet.mutableDivide(c);
279 return toRet;
280 }
281
282 /**
283 * Alters this vector such that

Callers 3

testDistance_VecMethod · 0.95
testDivideMethod · 0.45

Calls 2

getThisSideMethod · 0.95
mutableDivideMethod · 0.95

Tested by 3

testDistance_VecMethod · 0.76
testDivideMethod · 0.36