Layout.Chunk
Constructor and Description |
---|
LayoutRegularSegmented(long startPos,
int elemSize,
long recSize,
int[] srcShape,
Section wantSection)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getElemSize()
Get size of each element in bytes.
|
long |
getTotalNelems()
Get total number of elements in the wanted subset.
|
boolean |
hasNext()
Is there more to do
|
Layout.Chunk |
next()
Get the next chunk
|
IndexChunker.Chunk |
nextOuter() |
public LayoutRegularSegmented(long startPos, int elemSize, long recSize, int[] srcShape, Section wantSection) throws InvalidRangeException
startPos
- starting address of the entire data array.elemSize
- size of an element in bytes.recSize
- size of outer stride in bytessrcShape
- shape of the entire data array. must have rank > 0wantSection
- the wanted section of dataInvalidRangeException
- if ranges are misformedpublic long getTotalNelems()
Layout
getTotalNelems
in interface Layout
public int getElemSize()
Layout
getElemSize
in interface Layout
public boolean hasNext()
Layout
public Layout.Chunk next()
Layout
public IndexChunker.Chunk nextOuter()