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

Method mutablePairwiseDivide

JSAT/src/jsat/linear/SparseVector.java:799–808  ·  view source on GitHub ↗
(Vec b)

Source from the content-addressed store, hash-verified

797 }
798
799 @Override
800 public void mutablePairwiseDivide(Vec b)
801 {
802 if(this.length() != b.length())
803 throw new ArithmeticException("Vectors must have the same length");
804 clearCaches();
805
806 for(int i = 0; i < used; i++)
807 values[i] /= b.get(indexes[i]);//zeros stay zero
808 }
809
810 @Override
811 public boolean equals(Object obj, double range)

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.95
clearCachesMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected