|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ejml.data.MatrixIterator
public class MatrixIterator
This is a matrix iterator for traversing through a submatrix. For speed it is recommended that you directly access the elements in the matrix, but there are some situations where this can be a better design.
| Constructor Summary | |
|---|---|
MatrixIterator(Matrix64F a,
boolean rowMajor,
int minRow,
int minCol,
int maxRow,
int maxCol)
Creates a new iterator for traversing through a submatrix inside this matrix. |
|
| Method Summary | |
|---|---|
int |
getIndex()
Which element in the submatrix was returned by next() |
boolean |
hasNext()
|
boolean |
isRowMajor()
True if it is iterating through the matrix by rows and false if by columns. |
Double |
next()
|
void |
remove()
|
void |
set(double value)
Sets the value of the current element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixIterator(Matrix64F a,
boolean rowMajor,
int minRow,
int minCol,
int maxRow,
int maxCol)
a - the matrix it is iterating throughrowMajor - true means it will traverse through the submatrix by row first, false by columns.minRow - first row it will start at.minCol - first column it will start at.maxRow - last row it will stop at.maxCol - last column it will stop at.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<Double>public Double next()
next in interface Iterator<Double>public void remove()
remove in interface Iterator<Double>public int getIndex()
public boolean isRowMajor()
public void set(double value)
value - The element's new value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||