public class DiscontiguousIterator extends IndexIterator
index| Constructor and Description |
|---|
DiscontiguousIterator(int[] shape,
int[] dataShape,
int length)
Constructor for an iterator over the elements of a dataset that are
within the dimensions
|
DiscontiguousIterator(int[] shape,
int[] dataShape,
int length,
int isize)
Constructor for an iterator over the elements of a dataset that are
within the dimensions
|
public DiscontiguousIterator(int[] shape, int[] dataShape, int length)
shape - dataShape - length - of entire data arraypublic DiscontiguousIterator(int[] shape, int[] dataShape, int length, int isize)
shape - dataShape - length - of entire data arrayisize - number of elements in an itempublic boolean hasNext()
hasNext in class IndexIteratorpublic int[] getPos()
getPos in class IndexIteratorpublic void reset()
IndexIteratorreset in class IndexIteratorpublic int[] getShape()
getShape in class IndexIteratorCopyright © 2017. All rights reserved.