Package org.lsmp.djep.vectorJep.function
Class VList
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.nfunk.jep.function.List
org.lsmp.djep.vectorJep.function.VList
- All Implemented Interfaces:
NaryOperatorI
,PostfixMathCommandI
- Direct Known Subclasses:
MList
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:
-
Field Summary
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalcDim
(Dimensions[] dims) Calculates the dimension of this node with given dimensions of children.calcValue
(MatrixValueI res, MatrixValueI[] inputs) Calculates the value of this node.void
Throws an exception because this method should never be called under normal circumstances.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, setCurNumberOfParameters
-
Constructor Details
-
VList
public VList()
-
-
Method Details
-
calcDim
Calculates the dimension of this node with given dimensions of children.- Specified by:
calcDim
in interfaceNaryOperatorI
- Throws:
ParseException
-
calcValue
Calculates the value of this node.- Specified by:
calcValue
in interfaceNaryOperatorI
- Throws:
ParseException
-
run
Description copied from class:PostfixMathCommand
Throws an exception because this method should never be called under normal circumstances. Each function should use it's own run() method for evaluating the function. This includes popping off the parameters from the stack, and pushing the result back on the stack.- Specified by:
run
in interfacePostfixMathCommandI
- Overrides:
run
in classList
- Throws:
ParseException
-