Layout.Chunk| Constructor and Description |
|---|
LayoutSegmented(long[] segPos,
int[] segSize,
int elemSize,
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
|
Layout.Chunk |
nextOuter() |
public LayoutSegmented(long[] segPos,
int[] segSize,
int elemSize,
int[] srcShape,
Section wantSection)
throws InvalidRangeException
segPos - starting address of each segment.segSize - number of bytes in each segment. Assume multiple of elemSizeelemSize - size of an element in bytes.srcShape - shape of the entire data array.wantSection - the wanted section of dataInvalidRangeException - if ranges are misformedpublic long getTotalNelems()
LayoutgetTotalNelems in interface Layoutpublic int getElemSize()
LayoutgetElemSize in interface Layoutpublic boolean hasNext()
Layoutpublic Layout.Chunk next()
Layoutpublic Layout.Chunk nextOuter()