@Immutable public class SectionIterable extends Object implements Iterable<Integer>
Modifier and Type | Class and Description |
---|---|
class |
SectionIterable.SectionIterator |
Constructor and Description |
---|
SectionIterable(List<RangeIterator> ranges,
int[] fullShape) |
SectionIterable(List<RangeIterator> ranges,
List<Integer> fullShapeList) |
SectionIterable(Section section,
int[] fullShape) |
Modifier and Type | Method and Description |
---|---|
long |
computeSize() |
SectionIterable.SectionIterator |
getIterator()
Iterate over a section, returning the index in an equivalent 1D array of shape[]
So this is a section in a (possibly) larger array described by shape[].
|
RangeIterator |
getRange(int i) |
int |
getRank() |
int[] |
getShape() |
Iterator<Integer> |
iterator() |
SectionIterable |
subSection(int start,
int endExclusive) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SectionIterable(List<RangeIterator> ranges, int[] fullShape)
public SectionIterable(List<RangeIterator> ranges, List<Integer> fullShapeList)
public SectionIterable(Section section, int[] fullShape)
public long computeSize()
public SectionIterable.SectionIterator getIterator()
public RangeIterator getRange(int i)
public int getRank()
public int[] getShape()
public SectionIterable subSection(int start, int endExclusive)