public class MList extends VList implements PrintVisitor.PrintRulesI, NaryOperatorI, SpecialPreProcessorI
Constructor and Description |
---|
MList() |
Modifier and Type | Method and Description |
---|---|
void |
append(Node node,
PrintVisitor pv)
Used to print the TensorNode with all its children.
|
MatrixValueI |
calcValue(MatrixValueI res,
MatrixValueI[] inputs)
Calculates the value of this node.
|
MatrixNodeI |
preprocess(ASTFunNode node,
MatrixPreprocessor visitor,
MatrixJep jep,
MatrixNodeFactory nf)
Subverts the preprocessing stage.
|
checkNumberOfParameters, getNumberOfParameters, setCurNumberOfParameters
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calcDim
checkNumberOfParameters, getNumberOfParameters, run, setCurNumberOfParameters
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI[] inputs) throws ParseException
VList
calcValue
in interface NaryOperatorI
calcValue
in class VList
ParseException
public MatrixNodeI preprocess(ASTFunNode node, MatrixPreprocessor visitor, MatrixJep jep, MatrixNodeFactory nf) throws ParseException
SpecialPreProcessorI
MatrixNodeI children[] = visitor.visitChildrenAsArray(node,null);The final step is to construct a node of the correct type. The MatrixNodeFactory argument has a number of methods to do this. For example
return (ASTMFunNode) nf.buildOperatorNode(node.getOperator(),children,rhsDim);Note how the dimension is specified.
preprocess
in interface SpecialPreProcessorI
node
- the top node of the tree representing the function and its arguments.visitor
- A reference to the preprocessing visitor.jep
- A reference of the MatrixJep instance.nf
- A reference to the node factory object.ParseException
- if some error occurs.public void append(Node node, PrintVisitor pv) throws ParseException
append
in interface PrintVisitor.PrintRulesI
ParseException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics