Class NormalizedRange
- java.lang.Object
-
- io.github.hakkelt.ndarrays.Range
-
- io.github.hakkelt.ndarrays.internal.NormalizedRange
-
public class NormalizedRange extends Range
-
-
Constructor Summary
Constructors Constructor Description NormalizedRange(Range range, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAgainstParentDims(int[] parentDims, int length, Supplier<String> exprToString)
int
endIndex()
boolean
isScalar()
int
length()
static NormalizedRange[]
normalizeRanges(Range[] ranges, int[] parentDims)
int
startIndex()
int
step()
-
Methods inherited from class io.github.hakkelt.ndarrays.Range
parseExpressions, toString
-
-
-
-
Constructor Detail
-
NormalizedRange
public NormalizedRange(Range range, int length)
-
-
Method Detail
-
checkAgainstParentDims
public void checkAgainstParentDims(int[] parentDims, int length, Supplier<String> exprToString)
-
startIndex
public int startIndex()
-
step
public int step()
-
endIndex
public int endIndex()
-
isScalar
public boolean isScalar()
-
length
public int length()
-
normalizeRanges
public static NormalizedRange[] normalizeRanges(Range[] ranges, int[] parentDims)
-
-