public class VMap extends PostfixMathCommand implements NaryOperatorI, CallbackEvaluationI
Constructor and Description |
---|
VMap() |
Modifier and Type | Method and Description |
---|---|
Dimensions |
calcDim(Dimensions[] dims)
Find the dimensions of this operator when applied to arguments with given dimensions.
|
MatrixValueI |
calcValue(MatrixValueI res,
MatrixValueI[] inputs)
Calculates the value of this operator for given input with results stored in res.
|
boolean |
checkNumberOfParameters(int n)
Checks the number of parameters of the function.
|
Object |
evaluate(Node node,
EvaluatorI pv)
Performs some special evaluation on the node.
|
static Variable[] |
getVars(Node varsNode) |
getNumberOfParameters, run, setCurNumberOfParameters
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNumberOfParameters, run, setCurNumberOfParameters
public Dimensions calcDim(Dimensions[] dims) throws ParseException
NaryOperatorI
calcDim
in interface NaryOperatorI
ParseException
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI[] inputs) throws ParseException
NaryOperatorI
calcValue
in interface NaryOperatorI
ParseException
public static Variable[] getVars(Node varsNode) throws ParseException
ParseException
public boolean checkNumberOfParameters(int n)
PostfixMathCommand
checkNumberOfParameters
in interface PostfixMathCommandI
checkNumberOfParameters
in class PostfixMathCommand
n
- number of parameters function will be called with.public Object evaluate(Node node, EvaluatorI pv) throws ParseException
CallbackEvaluationI
pv.eval(node.jjtGetChild(i))for each child. The SymbolTable is not passed as an argument. This is because it is better practice to get and set variable values by using node.getVar().setValue() rather that through the SymbolTable with requires a hashtable lookup.
evaluate
in interface CallbackEvaluationI
node
- The current nodepv
- The visitor, can be used evaluate the childrenParseException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics