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

Method next

JSAT/src/jsat/linear/SubVector.java:85–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 @Override
86 public IndexValue next()
87 {
88 if(!hasNext())
89 throw new NoSuchElementException();
90 curVal.setIndex(nextVal.getIndex()-startPosition);
91 curVal.setValue(nextVal.getValue());
92 if(origIter.hasNext())
93 nextVal = origIter.next();
94 else
95 nextVal.setIndex(Integer.MAX_VALUE);
96
97 return curVal;
98 }
99
100 @Override
101 public void remove()

Callers 1

getNonZeroIteratorMethod · 0.45

Calls 5

hasNextMethod · 0.95
setIndexMethod · 0.80
getIndexMethod · 0.45
setValueMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected