public class MMultiply extends Multiply implements BinaryOperatorI
Modifier and Type | Field and Description |
---|---|
protected Add |
add |
protected Subtract |
sub |
curNumberOfParameters, numberOfParameters
Constructor and Description |
---|
MMultiply() |
Modifier and Type | Method and Description |
---|---|
Dimensions |
calcDim(Dimensions l,
Dimensions r)
Find the dimensions of this operator when applied to arguments with given dimensions.
|
MatrixValueI |
calcValue(MatrixValueI res,
MatrixValueI param1,
MatrixValueI param2)
Calculates the value of this operator for given input with results stored in res.
|
java.lang.Object |
mul(MatrixValueI param1,
MatrixValueI param2)
Multiply two objects.
|
java.lang.Object |
mul(java.lang.Object param1,
java.lang.Object param2)
Multiply two objects.
|
void |
run(java.util.Stack stack)
need to redo this as the standard jep version assumes commutivity.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkNumberOfParameters, getNumberOfParameters, setCurNumberOfParameters
public void run(java.util.Stack stack) throws ParseException
run
in interface PostfixMathCommandI
run
in class Multiply
ParseException
public java.lang.Object mul(java.lang.Object param1, java.lang.Object param2) throws ParseException
mul
in class Multiply
ParseException
public java.lang.Object mul(MatrixValueI param1, MatrixValueI param2) throws ParseException
ParseException
public Dimensions calcDim(Dimensions l, Dimensions r) throws ParseException
BinaryOperatorI
calcDim
in interface BinaryOperatorI
ParseException
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI param1, MatrixValueI param2) throws ParseException
BinaryOperatorI
calcValue
in interface BinaryOperatorI
ParseException
http://www.singularsys.com/jep Copyright © 2007 Singular Systems