@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 int getRank()
public SectionIterable subSection(int start, int endExclusive)
public RangeIterator getRange(int i)
public int[] getShape()
public long computeSize()
public SectionIterable.SectionIterator getIterator()