Package org.hipparchus.linear
Class OpenMapRealVector.OpenMapSparseIterator
java.lang.Object
org.hipparchus.linear.OpenMapRealVector.OpenMapSparseIterator
- All Implemented Interfaces:
Iterator<RealVector.Entry>
- Enclosing class:
- OpenMapRealVector
protected class OpenMapRealVector.OpenMapSparseIterator
extends Object
implements Iterator<RealVector.Entry>
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.
-
Constructor Details
-
OpenMapSparseIterator
protected OpenMapSparseIterator()Simple constructor.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<RealVector.Entry>
-
next
- Specified by:
next
in interfaceIterator<RealVector.Entry>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<RealVector.Entry>
-