mikera.indexz.impl.IndexIterator 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.indexz.impl;
import java.util.Iterator;
import mikera.indexz.AIndex;
/**
* General purpose iterator for arbitrary indexes.
*
* @author Mike
*/
public class IndexIterator implements Iterator {
private final AIndex source;
private final int length;
private int pos=0;
public IndexIterator(AIndex source) {
this.source=source;
this.length=source.length();
}
@Override
public boolean hasNext() {
return pos
© 2015 - 2025 Weber Informatics LLC | Privacy Policy