org.jblas.ranges
Class RangeUtils

java.lang.Object
  extended by 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


Constructor Summary
RangeUtils()
           
 
Method Summary
static Range all()
           
static Range find(DoubleMatrix is)
           
static Range indices(DoubleMatrix is)
           
static Range indices(int[] is)
           
static Range interval(int a, int b)
           
static Range point(int i)
          Construct point range (constant range) with given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeUtils

public RangeUtils()
Method Detail

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