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

Method getLastNonZeroIndex

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

Returns the index of the last non-zero value, or -1 if all values are zero. @return the index of the last non-zero value, or -1 if all values are zero.

()

Source from the content-addressed store, hash-verified

318 * @return the index of the last non-zero value, or -1 if all values are zero.
319 */
320 public int getLastNonZeroIndex()
321 {
322 if(used == 0)
323 return -1;
324 return indexes[used-1];
325 }
326
327 @Override
328 public double min()

Callers 1

changeSizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected