public class MatrixTrace extends UnaryFunction implements MatrixFunctionI
curNumberOfParameters, name, NaN, numberOfParameters
Constructor and Description |
---|
MatrixTrace(MatrixFieldI mfact) |
Modifier and Type | Method and Description |
---|---|
Dimensions |
calcDims(Dimensions... inDims)
Attempts to calculate the dimensions of a result of a PostfixMathCommand.
|
java.lang.Object |
eval(java.lang.Object arg) |
java.lang.Object |
trace(java.lang.Object param) |
run
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
public MatrixTrace(MatrixFieldI mfact)
mfact
- public java.lang.Object trace(java.lang.Object param) throws EvaluationException
EvaluationException
public java.lang.Object eval(java.lang.Object arg) throws EvaluationException
eval
in class UnaryFunction
EvaluationException
public Dimensions calcDims(Dimensions... inDims) throws ParseException
MatrixFunctionI
calcDims
in interface MatrixFunctionI
inDims
- the dimensions of each argumentParseException
- if there is a parse errorCopyright © 2018 Singular Systems http://www.singularsys.com/jep