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

mikera.indexz.impl.IndexIterator 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.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