public class IntegersIterator extends IndexIterator
index
Constructor and Description |
---|
IntegersIterator(boolean restrict1D,
int[] shape,
Object... index)
Constructor for an iterator over the items of an array of objects
|
IntegersIterator(int[] shape,
Object... index)
Constructor for an iterator over the items of an array of objects
|
Modifier and Type | Method and Description |
---|---|
int[] |
getPos() |
int[] |
getShape() |
boolean |
hasNext() |
void |
reset()
Reset iterator
|
public IntegersIterator(int[] shape, Object... index)
shape
- of entire data arrayindex
- an array of integer dataset, boolean dataset, slices or null entries (same as full slices)public IntegersIterator(boolean restrict1D, int[] shape, Object... index)
restrict1D
- if true, allow only one 1D integer datasets otherwise they must match shapeshape
- of entire data arrayindex
- an array of integer dataset, boolean dataset, slices or null entries (same as full slices)public int[] getShape()
getShape
in class IndexIterator
public boolean hasNext()
hasNext
in class IndexIterator
public int[] getPos()
getPos
in class IndexIterator
public void reset()
IndexIterator
reset
in class IndexIterator
Copyright © 2014–2019 Eclipse Foundation. All rights reserved.