public class SliceIterator extends IndexIterator
index| Constructor and Description |
|---|
SliceIterator(int[] shape,
int length,
int[] sshape)
Constructor for an iterator over the elements of a sliced dataset
|
SliceIterator(int[] shape,
int length,
int[] sshape,
int isize)
Constructor for an iterator over the elements of a sliced dataset
|
SliceIterator(int[] shape,
int length,
int[] start,
int[] sshape)
Constructor for an iterator over the elements of a sliced dataset
|
SliceIterator(int[] shape,
int length,
int[] start,
int[] sshape,
int isize)
Constructor for an iterator over the elements of a sliced dataset
|
SliceIterator(int[] shape,
int length,
int[] start,
int[] step,
int[] sshape)
Constructor for an iterator over the elements of a sliced dataset
|
SliceIterator(int[] shape,
int length,
int[] start,
int[] step,
int[] sshape,
int isize)
Constructor for an iterator over the elements of a sliced dataset
|
SliceIterator(int[] shape,
int length,
int isize,
SliceND slice)
Constructor for an iterator over the elements of a sliced dataset
|
SliceIterator(int[] shape,
int length,
SliceND slice)
Constructor for an iterator over the elements of a sliced dataset
|
public SliceIterator(int[] shape, int length, int[] sshape)
shape - or dataShapelength - of entire data arraysshape - shape of new dataset, i.e. slicepublic SliceIterator(int[] shape, int length, int[] start, int[] sshape)
shape - or dataShapelength - of entire data arraystart - (if null then equivalent to the origin)sshape - shape of new dataset, i.e. slicepublic SliceIterator(int[] shape, int length, int[] sshape, int isize)
shape - or dataShapelength - of entire data arraysshape - shape of new dataset, i.e. sliceisize - number of elements in an itempublic SliceIterator(int[] shape, int length, int[] start, int[] sshape, int isize)
shape - or dataShapelength - of entire data arraystart - (if null then equivalent to the origin)sshape - shape of new dataset, i.e. sliceisize - number of elements in an itempublic SliceIterator(int[] shape, int length, int[] start, int[] step, int[] sshape)
shape - or dataShapelength - of entire data arraystart - (if null then equivalent to the origin)step - (cannot contain zeros, if null then equivalent to ones)sshape - shape of new dataset, i.e. slicepublic SliceIterator(int[] shape, int length, SliceND slice)
shape - or dataShapelength - of entire data arrayslice - public SliceIterator(int[] shape, int length, int isize, SliceND slice)
shape - or dataShapelength - of entire data arrayisize - number of elements in an itemslice - public SliceIterator(int[] shape, int length, int[] start, int[] step, int[] sshape, int isize)
shape - or dataShapelength - of entire data arraystart - (if null then equivalent to the origin)step - (cannot contain zeros, if null then equivalent to ones)sshape - shape of new dataset, i.e. sliceisize - number of elements in an itempublic void setStart(int... newStart)
newStart - if null, then treat as originpublic void reset()
IndexIteratorreset in class IndexIteratorpublic boolean hasNext()
hasNext in class IndexIteratorpublic int[] getStart()
public int[] getPos()
getPos in class IndexIteratorpublic int[] getStep()
public int[] getShape()
getShape in class IndexIteratorCopyright © 2017. All rights reserved.