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) |
Object |
dot(MVector lhs,
MVector rhs)
returns lhs .
|
Object |
dot(Object param1,
Object param2)
returns param1 .
|
void |
run(Stack stack)
need to redo this as the standard jep version assumes commutivity.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNumberOfParameters, getNumberOfParameters, setCurNumberOfParameterspublic Dimensions calcDim(Dimensions l, Dimensions r)
BinaryOperatorIcalcDim in interface BinaryOperatorIcalcDim in class MMultiplypublic MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs, MatrixValueI rhs) throws ParseException
calcValue in interface BinaryOperatorIcalcValue in class MMultiplyres - - results will be stored in this objectlhs - - lhs valuerhs - - rhs valueParseExceptionpublic Scaler calcValue(Scaler res, MVector lhs, MVector rhs) throws ParseException
ParseExceptionpublic void run(Stack stack) throws ParseException
MMultiplyrun in interface PostfixMathCommandIrun in class MMultiplyParseExceptionpublic Object dot(Object param1, Object param2) throws ParseException
ParseExceptionpublic Object dot(MVector lhs, MVector rhs) throws ParseException
ParseExceptionCopyright © 2018. All rights reserved.