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 IndexIterator
public int[] getPos()
getPos
in class IndexIterator
public void reset()
IndexIterator
reset
in class IndexIterator
public int[] getShape()
getShape
in class IndexIterator
Copyright © 2017. All rights reserved.