org.apache.commons.math3.linear
Class OpenMapRealVector.OpenMapSparseIterator

java.lang.Object
  extended by org.apache.commons.math3.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 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
 

Constructor Detail

OpenMapRealVector.OpenMapSparseIterator

protected OpenMapRealVector.OpenMapSparseIterator()
Simple constructor.

Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface Iterator<RealVector.Entry>

next

public RealVector.Entry next()

Specified by:
next in interface Iterator<RealVector.Entry>

remove

public void remove()

Specified by:
remove in interface Iterator<RealVector.Entry>


Copyright © 2016 CNES. All Rights Reserved.