public class MAdd extends Add implements BinaryOperatorI
| Constructor and Description |
|---|
MAdd() |
| Modifier and Type | Method and Description |
|---|---|
Matrix |
add(Matrix lhs,
Matrix rhs)
Adds two matrices.
|
MVector |
add(MVector lhs,
MVector rhs)
Adds two vectors.
|
Object |
add(Object param1,
Object param2)
Adds two objects.
|
Tensor |
add(Tensor lhs,
Tensor rhs)
Adds two tensors.
|
Dimensions |
calcDim(Dimensions ldim,
Dimensions rdim)
Find the dimensions of this operator when applied to arguments with given dimensions.
|
MatrixValueI |
calcValue(MatrixValueI res,
MatrixValueI lhs,
MatrixValueI rhs)
calculates the value.
|
checkNumberOfParameters, getNumberOfParameters, setCurNumberOfParametersequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNumberOfParameters, getNumberOfParameters, run, setCurNumberOfParameterspublic Dimensions calcDim(Dimensions ldim, Dimensions rdim)
BinaryOperatorIcalcDim in interface BinaryOperatorIpublic MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs, MatrixValueI rhs) throws ParseException
calcValue in interface BinaryOperatorIres - - results will be stored in this objectlhs - - lhs valuerhs - - rhs valueParseExceptionpublic Object add(Object param1, Object param2) throws ParseException
add in class Addparam1 - The first parameter to be added.param2 - The second parameter to be added.ParseExceptionpublic MVector add(MVector lhs, MVector rhs) throws ParseException
ParseExceptionpublic Matrix add(Matrix lhs, Matrix rhs) throws ParseException
ParseExceptionpublic Tensor add(Tensor lhs, Tensor rhs) throws ParseException
ParseExceptionJas4pp 1.5 © Java Analysis Studio for Particle Physics