public class SliceNDIterator extends IndexIterator
Class to provide slice iteration through a dataset
It allows a number of axes to be omitted and iterates over the axes left over.
index| Constructor and Description |
|---|
SliceNDIterator(SliceND slice,
int... axes)
Constructor for an iterator that misses out several axes
|
| Modifier and Type | Method and Description |
|---|---|
SliceND |
getCurrentSlice()
Get current slice
|
boolean[] |
getOmit() |
SliceND |
getOmittedSlice()
Get omitted part of source slice which never changes
|
SliceND |
getOutputSlice()
Get output or destination slice
|
int[] |
getPos() |
int[] |
getShape() |
int[] |
getUsedPos()
Shortened position where axes are omitted
|
SliceND |
getUsedSlice()
Shortened slice where axes are omitted
|
boolean |
hasNext() |
void |
reset()
Reset iterator
|
public SliceNDIterator(SliceND slice, int... axes)
slice - axes - missing axespublic boolean hasNext()
hasNext in class IndexIteratorpublic int[] getPos()
getPos in class IndexIteratorpublic SliceND getOmittedSlice()
public SliceND getOutputSlice()
public SliceND getCurrentSlice()
public int[] getUsedPos()
public SliceND getUsedSlice()
public boolean[] getOmit()
public void reset()
IndexIteratorreset in class IndexIteratorpublic int[] getShape()
getShape in class IndexIteratorCopyright © 2014–2018 Eclipse Foundation. All rights reserved.