|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nfunk.jep.function.PostfixMathCommand
org.lsmp.djep.vectorJep.function.Trace
public class Trace
Calculate the trace of a matrix trace([[1,2],[3,4]]) -> 1+4 = 5
Field Summary |
---|
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand |
---|
curNumberOfParameters, numberOfParameters |
Constructor Summary | |
---|---|
Trace()
|
Method Summary | |
---|---|
Dimensions |
calcDim(Dimensions ldim)
Find the dimensions of this operator when applied to arguments with given dimensions. |
MatrixValueI |
calcValue(MatrixValueI res,
MatrixValueI lhs)
Calculates the value of this operator for given input with results stored in res. |
void |
run(java.util.Stack s)
Throws an exception because this method should never be called under normal circumstances. |
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand |
---|
checkNumberOfParameters, 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 |
---|
checkNumberOfParameters, getNumberOfParameters, setCurNumberOfParameters |
Constructor Detail |
---|
public Trace()
Method Detail |
---|
public Dimensions calcDim(Dimensions ldim)
UnaryOperatorI
calcDim
in interface UnaryOperatorI
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs) throws ParseException
UnaryOperatorI
calcValue
in interface UnaryOperatorI
ParseException
public void run(java.util.Stack s) throws ParseException
PostfixMathCommand
run
in interface PostfixMathCommandI
run
in class PostfixMathCommand
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |