Package org.la4j.iterator
Class CursorToVectorIterator
- java.lang.Object
-
- org.la4j.iterator.CursorIterator
-
- org.la4j.iterator.VectorIterator
-
- org.la4j.iterator.CursorToVectorIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Double>
class CursorToVectorIterator extends VectorIterator
-
-
Field Summary
Fields Modifier and Type Field Description private CursorIteratorunderlying-
Fields inherited from class org.la4j.iterator.VectorIterator
length
-
-
Constructor Summary
Constructors Constructor Description CursorToVectorIterator(CursorIterator underlying, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleget()booleanhasNext()intindex()Returns an index of the current cell.java.lang.Doublenext()voidset(double value)-
Methods inherited from class org.la4j.iterator.VectorIterator
andAlsoDivide, andAlsoMultiply, cursor, innerProduct, orElseAdd, orElseSubtract
-
Methods inherited from class org.la4j.iterator.CursorIterator
andAlso, orElse, remove
-
-
-
-
Field Detail
-
underlying
private final CursorIterator underlying
-
-
Constructor Detail
-
CursorToVectorIterator
public CursorToVectorIterator(CursorIterator underlying, int length)
-
-
Method Detail
-
index
public int index()
Description copied from class:VectorIteratorReturns an index of the current cell.- Specified by:
indexin classVectorIterator- Returns:
- an index of the current cell
-
get
public double get()
- Specified by:
getin classCursorIterator
-
set
public void set(double value)
- Specified by:
setin classCursorIterator
-
hasNext
public boolean hasNext()
-
next
public java.lang.Double next()
-
-