Class MatrixNeg
- java.lang.Object
-
- com.singularsys.jep.functions.PostfixMathCommand
-
- com.singularsys.jep.functions.UnaryFunction
-
- com.singularsys.extensions.matrix.functions.MatrixNeg
-
- All Implemented Interfaces:
MatrixFunctionI,PostfixMathCommandI,java.io.Serializable
public class MatrixNeg extends UnaryFunction implements MatrixFunctionI
Negates an object using a MatrixField.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DimensionscalcDims(Dimensions... inDims)Attempts to calculate the dimensions of a result of a PostfixMathCommand.java.lang.Objecteval(java.lang.Object arg)java.lang.Objectumin(java.lang.Object param)-
Methods inherited from class com.singularsys.jep.functions.UnaryFunction
instanceOf, instanceOf, run
-
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
-
-
-
Constructor Detail
-
MatrixNeg
public MatrixNeg(FieldI mfield2)
- Parameters:
mfield2-
-
-
Method Detail
-
umin
public java.lang.Object umin(java.lang.Object param) throws EvaluationException- Throws:
EvaluationException
-
calcDims
public Dimensions calcDims(Dimensions... inDims) throws ParseException
Description copied from interface:MatrixFunctionIAttempts to calculate the dimensions of a result of a PostfixMathCommand.- Specified by:
calcDimsin interfaceMatrixFunctionI- Parameters:
inDims- the dimensions of each argument- Returns:
- the dimension of the result or null if can be calculated
- Throws:
ParseException- if there is a parse error
-
eval
public java.lang.Object eval(java.lang.Object arg) throws EvaluationException- Specified by:
evalin classUnaryFunction- Throws:
EvaluationException
-
-