Package org.la4j.iterator
Class CursorToRowMajorMatrixIterator
- java.lang.Object
-
- org.la4j.iterator.CursorIterator
-
- org.la4j.iterator.MatrixIterator
-
- org.la4j.iterator.RowMajorMatrixIterator
-
- org.la4j.iterator.CursorToRowMajorMatrixIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Double>
class CursorToRowMajorMatrixIterator extends RowMajorMatrixIterator
-
-
Field Summary
Fields Modifier and Type Field Description private CursorIterator
underlying
-
Fields inherited from class org.la4j.iterator.MatrixIterator
columns, rows
-
-
Constructor Summary
Constructors Constructor Description CursorToRowMajorMatrixIterator(CursorIterator underlying, int rows, int columns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
columnIndex()
double
get()
boolean
hasNext()
java.lang.Double
next()
int
rowIndex()
void
set(double value)
-
Methods inherited from class org.la4j.iterator.RowMajorMatrixIterator
andAlsoDivide, andAlsoMultiply, cursor, orElseAdd, orElseSubtract
-
Methods inherited from class org.la4j.iterator.CursorIterator
andAlso, orElse, remove
-
-
-
-
Field Detail
-
underlying
private final CursorIterator underlying
-
-
Constructor Detail
-
CursorToRowMajorMatrixIterator
public CursorToRowMajorMatrixIterator(CursorIterator underlying, int rows, int columns)
-
-
Method Detail
-
rowIndex
public int rowIndex()
- Specified by:
rowIndex
in classMatrixIterator
-
columnIndex
public int columnIndex()
- Specified by:
columnIndex
in classMatrixIterator
-
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()
-
-