Class 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.