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()
Layout
getTotalNelems
in interface Layout
public int getElemSize()
Layout
getElemSize
in interface Layout
public boolean hasNext()
Layout
public Layout.Chunk next()
Layout
public Layout.Chunk nextOuter()