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 CursorIterator
underlying
-
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 double
get()
boolean
hasNext()
int
index()
Returns an index of the current cell.java.lang.Double
next()
void
set(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:VectorIterator
Returns an index of the current cell.- Specified by:
index
in classVectorIterator
- Returns:
- an index of the current cell
-
get
public double get()
- Specified by:
get
in classCursorIterator
-
set
public void set(double value)
- Specified by:
set
in classCursorIterator
-
hasNext
public boolean hasNext()
-
next
public java.lang.Double next()
-
-