mikera.matrixx.impl.MatrixRowIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorz Show documentation
Show all versions of vectorz Show documentation
Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.
package mikera.matrixx.impl;
import java.util.Iterator;
import mikera.matrixx.AMatrix;
import mikera.vectorz.AVector;
/**
* Iterator over matrix rows
*
* @author Mike
*/
public class MatrixRowIterator implements Iterator {
private final AMatrix source;
private final int maxPos;
private int pos;
public MatrixRowIterator(AMatrix source) {
this.pos=0;
this.source=source;
this.maxPos=source.rowCount();
}
@Override
public boolean hasNext() {
return pos
© 2015 - 2025 Weber Informatics LLC | Privacy Policy