Package org.jblas.ranges
Class RangeUtils
- java.lang.Object
-
- org.jblas.ranges.RangeUtils
-
public class RangeUtils extends java.lang.Object
A bunch of static functions for making construction of ranges more uniform. Basically, we have- point(3) - a PointRange.
- indices(new int[] {1,2,3,...}) - a Indices Range.
- interval(1, 2) - an interval range.
- all() - an AllRange.
- indices(x) - with a DoubleMatrix.
- find(x) - an index constructed from the non-zero elements of x.
-
-
Constructor Summary
Constructors Constructor Description RangeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Range
all()
static Range
find(DoubleMatrix is)
static Range
indices(int[] is)
static Range
indices(DoubleMatrix is)
static Range
interval(int a, int b)
static Range
point(int i)
Construct point range (constant range) with given index.
-
-
-
Constructor Detail
-
RangeUtils
public RangeUtils()
-
-
Method Detail
-
indices
public static Range indices(DoubleMatrix is)
-
find
public static Range find(DoubleMatrix is)
-
-