@Immutable
public class SectionIterable
extends java.lang.Object
implements java.lang.Iterable<java.lang.Integer>
Modifier and Type | Class and Description |
---|---|
class |
SectionIterable.SectionIterator |
Constructor and Description |
---|
SectionIterable(java.util.List<RangeIterator> ranges,
int[] fullShape) |
SectionIterable(java.util.List<RangeIterator> ranges,
java.util.List<java.lang.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() |
java.util.Iterator<java.lang.Integer> |
iterator() |
SectionIterable |
subSection(int start,
int endExclusive) |
public SectionIterable(java.util.List<RangeIterator> ranges, int[] fullShape)
public SectionIterable(java.util.List<RangeIterator> ranges, java.util.List<java.lang.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 java.util.Iterator<java.lang.Integer> iterator()
iterator
in interface java.lang.Iterable<java.lang.Integer>
public SectionIterable subSection(int start, int endExclusive)