All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mikera.matrixx.impl.MatrixRowIterator Maven / Gradle / Ivy

Go to download

Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.

There is a newer version: 0.67.0
Show newest version
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