org.lsmp.djep.vectorJep.function
Class VRange
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.nfunk.jep.function.Range
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.
| Methods inherited from class org.nfunk.jep.function.Range |
run |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VRange
public VRange()
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 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
Copyright © 2014. All rights reserved.