Class RangeUtils

java.lang.Object
org.jblas.ranges.RangeUtils

public class RangeUtils extends 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 Details

    • RangeUtils

      public RangeUtils()
  • Method Details

    • 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)