|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nfunk.jep.function.PostfixMathCommand
org.nfunk.jep.function.Subtract
org.lsmp.djep.vectorJep.function.MSubtract
An extension of the Add command to allow it to add MVector's and Matrix's.
Field Summary |
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand |
curNumberOfParameters, numberOfParameters |
Constructor Summary | |
MSubtract()
|
Method Summary | |
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. |
Matrix |
sub(Matrix lhs,
Matrix rhs)
Adds two matricies. |
MVector |
sub(MVector lhs,
MVector rhs)
Adds two vectors. |
java.lang.Object |
sub(java.lang.Object param1,
java.lang.Object param2)
Adds two objects. |
Tensor |
sub(Tensor lhs,
Tensor rhs)
Adds two matricies. |
Methods inherited from class org.nfunk.jep.function.Subtract |
run, sub, sub, sub, sub |
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand |
checkStack, getNumberOfParameters, setCurNumberOfParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nfunk.jep.function.PostfixMathCommandI |
getNumberOfParameters, run, setCurNumberOfParameters |
Constructor Detail |
public MSubtract()
Method Detail |
public Dimensions calcDim(Dimensions ldim, Dimensions rdim)
BinaryOperatorI
calcDim
in interface BinaryOperatorI
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs, MatrixValueI rhs) throws ParseException
calcValue
in interface BinaryOperatorI
res
- - results will be stored in this objectlhs
- - lhs valuerhs
- - rhs value
ParseException
public java.lang.Object sub(java.lang.Object param1, java.lang.Object param2) throws ParseException
sub
in class Subtract
ParseException
public MVector sub(MVector lhs, MVector rhs) throws ParseException
ParseException
public Matrix sub(Matrix lhs, Matrix rhs) throws ParseException
ParseException
public Tensor sub(Tensor lhs, Tensor rhs) throws ParseException
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |