org.jblas.la.ranges
Class RangeUtils
java.lang.Object
org.jblas.la.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RangeUtils
public RangeUtils()
point
public static Range point(int i)
- Construct point range (constant range) with given index.
indices
public static Range indices(int[] is)
interval
public static Range interval(int a,
int b)
all
public static Range all()
indices
public static Range indices(DoubleMatrix is)
find
public static Range find(DoubleMatrix is)
written by Mikio L. Braun and Johannes Schaback