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
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getPos() |
int[] |
getShape() |
boolean |
hasNext() |
void |
reset()
Reset iterator
|
public ContiguousIteratorWithPosition(int[] shape, int length)
shape - to uselength - of entire data arraypublic ContiguousIteratorWithPosition(int[] shape, int length, int isize)
shape - to uselength - 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 © 2014–2022 Eclipse Foundation. All rights reserved.