org.lsmp.djep.vectorJep.function
Class VRange

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by org.nfunk.jep.function.Range
          extended by org.lsmp.djep.vectorJep.function.VRange
All Implemented Interfaces:
NaryOperatorI, PostfixMathCommandI

public class VRange
extends Range
implements NaryOperatorI

A enhanced version of List, allows matrices and tensors. During evaluation this function converts lists of values into the appropriate

Author:
Rich Morris Created on 27-Nov-2003
See Also:
MatrixValueI type.

Field Summary
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
VRange()
           
 
Method Summary
 Dimensions calcDim(Dimensions[] dims)
          Calculates the dimension of this node with given dimensions of children.
 MatrixValueI calcValue(MatrixValueI res, MatrixValueI[] inputs)
          Calculates the value of this node.
 java.lang.Object genRange(double low, double inc, int steps)
          Generates a range [low,low+inc,...
 
Methods inherited from class org.nfunk.jep.function.Range
run
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nfunk.jep.function.PostfixMathCommandI
checkNumberOfParameters, getNumberOfParameters, run, setCurNumberOfParameters
 

Constructor Detail

VRange

public VRange()
Method Detail

calcDim

public Dimensions calcDim(Dimensions[] dims)
                   throws ParseException
Calculates the dimension of this node with given dimensions of children.

Specified by:
calcDim in interface NaryOperatorI
Throws:
ParseException

calcValue

public MatrixValueI calcValue(MatrixValueI res,
                              MatrixValueI[] inputs)
                       throws ParseException
Calculates the value of this node.

Specified by:
calcValue in interface NaryOperatorI
Throws:
ParseException

genRange

public java.lang.Object genRange(double low,
                                 double inc,
                                 int steps)
Description copied from class: Range
Generates a range [low,low+inc,...,low+inc*(steps-1)]

Overrides:
genRange in class Range
Returns:
a Vector


http://www.singularsys.com/jep Copyright © 2007 Singular Systems