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

Method SparseVector

JSAT/src/jsat/linear/SparseVector.java:57–60  ·  view source on GitHub ↗

Creates a new sparse vector of the given length that is all zero values. @param length the length of the sparse vector

(int length)

Source from the content-addressed store, hash-verified

55 * @param length the length of the sparse vector
56 */
57 public SparseVector(int length)
58 {
59 this(length, 10);
60 }
61
62 /**
63 * Creates a new sparse vector of the same length as {@code vals} and sets

Callers

nothing calls this directly

Calls 7

copyOfMethod · 0.80
sizeMethod · 0.65
getMethod · 0.45
lengthMethod · 0.45
nnzMethod · 0.45
getIndexMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected