public class MDot extends MMultiply implements BinaryOperatorI
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, getNumberOfParameters, setCurNumberOfParameters
equals, 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(Stack stack) throws ParseException
MMultiply
run
in interface PostfixMathCommandI
run
in class MMultiply
ParseException
public Object dot(Object param1, Object param2) throws ParseException
ParseException
public Object dot(MVector lhs, MVector rhs) throws ParseException
ParseException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics