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

Method clone

JSAT/src/jsat/linear/SparseVector.java:763–773  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

761 }
762
763 @Override
764 public SparseVector clone()
765 {
766 SparseVector copy = new SparseVector(length, Math.max(used, 10));
767
768 System.arraycopy(this.values, 0, copy.values, 0, this.used);
769 System.arraycopy(this.indexes, 0, copy.indexes, 0, this.used);
770 copy.used = this.used;
771
772 return copy;
773 }
774
775 @Override
776 public void normalize()

Callers 1

loadGMethod · 0.95

Calls 1

maxMethod · 0.45

Tested by

no test coverage detected