org.lsmp.djep.matrixJep.function
Class MPower
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.lsmp.djep.vectorJep.function.VPower
org.lsmp.djep.matrixJep.function.MPower
- All Implemented Interfaces:
- SpecialPreProcessorI, BinaryOperatorI, PostfixMathCommandI
public class MPower
- extends VPower
- implements SpecialPreProcessorI
An overloaded Power function compatible with MatrixJep.
- Author:
- Rich Morris
Created on 14-Feb-2005
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MPower
public MPower()
preprocess
public MatrixNodeI preprocess(ASTFunNode node,
MatrixPreprocessor visitor,
MatrixJep jep,
MatrixNodeFactory nf)
throws ParseException
- During preprocessing sets the function to the Cross function if necessary.
- Specified by:
preprocess in interface SpecialPreProcessorI
- Parameters:
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.
- Returns:
- A new MatrixNodeI representing the converted function.
- Throws:
ParseException - if some error occurs.
Copyright © 2014. All rights reserved.