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 int getElemSize()
LayoutgetElemSize in interface Layoutpublic long getTotalNelems()
LayoutgetTotalNelems in interface Layoutpublic boolean hasNext()
Layoutpublic Layout.Chunk next()
Layoutpublic IndexChunker.Chunk nextOuter()