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

Method mutableMultiply

JSAT/src/jsat/linear/SparseVector.java:655–667  ·  view source on GitHub ↗
(double c)

Source from the content-addressed store, hash-verified

653 }
654
655 @Override
656 public void mutableMultiply(double c)
657 {
658 clearCaches();
659 if(c == 0.0)
660 {
661 zeroOut();
662 return;
663 }
664
665 for(int i = 0; i < used; i++)
666 values[i] *= c;
667 }
668
669 @Override
670 public void mutableDivide(double c)

Callers

nothing calls this directly

Calls 2

clearCachesMethod · 0.95
zeroOutMethod · 0.95

Tested by

no test coverage detected