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
public class VList
- extends List
- 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.
|
Constructor Summary |
VList()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VList
public VList()
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
run
public void run(Stack inStack)
throws ParseException
- 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 interface PostfixMathCommandI- Overrides:
run in class List
- Throws:
ParseException
Copyright © 2014. All rights reserved.