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

Method mutablePairwiseDivide

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

Mutates this by dividing each value by the value in b that has the same index This method should be overloaded for a serious implementation. @param b the vector to pairwise divide by

(Vec b)

Source from the content-addressed store, hash-verified

395 * @param b the vector to pairwise divide by
396 */
397 public void mutablePairwiseDivide(Vec b)
398 {
399 if(length() != b.length())
400 throw new ArithmeticException("Vector lengths do not agree " + length() + " vs " + b.length());
401 for(int i = 0; i < length(); i++)
402 set(i, get(i)/b.get(i));
403 }
404
405 /**
406 * Mutates {@code this /= c}

Callers 8

pairwiseDivideMethod · 0.95
mutableInverseMethod · 0.95
mutableTransformMethod · 0.95
fitMethod · 0.45
mutableTransformMethod · 0.45

Calls 3

lengthMethod · 0.95
setMethod · 0.95
getMethod · 0.95

Tested by 3