|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.linear.OpenMapRealVector.OpenMapSparseIterator
protected class OpenMapRealVector.OpenMapSparseIterator
Iterator class to do iteration over just the non-zero elements. This implementation is fail-fast, so cannot be used to modify any zero element.
Field Summary | |
---|---|
private RealVector.Entry |
current
Current entry. |
private OpenIntToDoubleHashMap.Iterator |
iter
Underlying iterator. |
Constructor Summary | |
---|---|
protected |
OpenMapRealVector.OpenMapSparseIterator()
Simple constructor. |
Method Summary | |
---|---|
boolean |
hasNext()
|
RealVector.Entry |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final OpenIntToDoubleHashMap.Iterator iter
private final RealVector.Entry current
Constructor Detail |
---|
protected OpenMapRealVector.OpenMapSparseIterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<RealVector.Entry>
public RealVector.Entry next()
next
in interface Iterator<RealVector.Entry>
public void remove()
remove
in interface Iterator<RealVector.Entry>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |