public class MDot extends MMultiply implements BinaryOperatorI
curNumberOfParameters, numberOfParameters
Constructor and Description |
---|
MDot() |
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 lhs,
MatrixValueI rhs)
calculates the value.
|
Scaler |
calcValue(Scaler res,
MVector lhs,
MVector rhs) |
java.lang.Object |
dot(MVector lhs,
MVector rhs)
returns lhs . rhs
|
java.lang.Object |
dot(java.lang.Object param1,
java.lang.Object param2)
returns param1 . param2.
|
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 Dimensions calcDim(Dimensions l, Dimensions r)
BinaryOperatorI
calcDim
in interface BinaryOperatorI
calcDim
in class MMultiply
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs, MatrixValueI rhs) throws ParseException
calcValue
in interface BinaryOperatorI
calcValue
in class MMultiply
res
- - results will be stored in this objectlhs
- - lhs valuerhs
- - rhs valueParseException
public Scaler calcValue(Scaler res, MVector lhs, MVector rhs) throws ParseException
ParseException
public void run(java.util.Stack stack) throws ParseException
MMultiply
run
in interface PostfixMathCommandI
run
in class MMultiply
ParseException
public java.lang.Object dot(java.lang.Object param1, java.lang.Object param2) throws ParseException
ParseException
public java.lang.Object dot(MVector lhs, MVector rhs) throws ParseException
ParseException
http://www.singularsys.com/jep Copyright © 2007 Singular Systems