Package org.nuiton.math.matrix
Class LazyVector.LazyVectorIterator
java.lang.Object
org.nuiton.math.matrix.LazyVector.LazyVectorIterator
- All Implemented Interfaces:
VectorIterator
- Enclosing class:
LazyVector
Iterator qui prepare le backend que lors d'un set
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongreturn linear position of current value in vectordoublegetValue()booleanhasNext()doublenext()voidsetExclude(double exclude) voidsetValue(double value)
-
Field Details
-
vector
-
iter
-
value
protected double value
-
-
Constructor Details
-
LazyVectorIterator
-
-
Method Details
-
setExclude
public void setExclude(double exclude) - Specified by:
setExcludein interfaceVectorIterator
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceVectorIterator
-
next
public double next()- Specified by:
nextin interfaceVectorIterator
-
getValue
public double getValue()- Specified by:
getValuein interfaceVectorIterator
-
setValue
public void setValue(double value) - Specified by:
setValuein interfaceVectorIterator
-
getPosition
public long getPosition()Description copied from interface:VectorIteratorreturn linear position of current value in vector- Specified by:
getPositionin interfaceVectorIterator- Returns:
-