Package org.nuiton.math.matrix
Class VectorIteratorImpl
java.lang.Object
org.nuiton.math.matrix.VectorIteratorImpl
- All Implemented Interfaces:
VectorIterator
- Version:
- $Revision$ Last update: $Date$ by : $Author$
- Author:
- poussin
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVectorIteratorImpl(Vector vector) VectorIteratorImpl(Vector vector, double exclude) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlongreturn linear position of current value in vectordoublegetValue()booleanhasNext()doublenext()voidsetExclude(double exclude) voidsetValue(double value)
-
Field Details
-
hasExclude
protected boolean hasExclude -
exclude
protected double exclude -
vector
-
size
protected long size -
pos
protected long pos -
nextPos
protected long nextPos
-
-
Constructor Details
-
VectorIteratorImpl
-
VectorIteratorImpl
-
-
Method Details
-
setExclude
public void setExclude(double exclude) - Specified by:
setExcludein interfaceVectorIterator
-
computeNextPos
protected void computeNextPos() -
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:
-