public class ContiguousIteratorWithPosition extends IndexIterator
index
Constructor and Description |
---|
ContiguousIteratorWithPosition(int[] shape,
int length)
Constructor for an iterator over the items of a dataset that are
within the dimensions
|
ContiguousIteratorWithPosition(int[] shape,
int length,
int isize)
Constructor for an iterator over the items of a dataset that are
within the dimensions
|
public ContiguousIteratorWithPosition(int[] shape, int length)
shape
- length
- of entire data arraypublic ContiguousIteratorWithPosition(int[] shape, int length, int isize)
shape
- 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.