Class MatrixMul
- java.lang.Object
-
- com.singularsys.jep.functions.PostfixMathCommand
-
- com.singularsys.jep.functions.NaryBinaryFunction
-
- com.singularsys.extensions.matrix.functions.MatrixMul
-
- All Implemented Interfaces:
MatrixFunctionI
,PostfixMathCommandI
,java.io.Serializable
public class MatrixMul extends NaryBinaryFunction implements MatrixFunctionI
Multiplies two objects 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 Dimensions
calcDims(Dimensions... inDims)
Attempts to calculate the dimensions of a result of a PostfixMathCommand.Dimensions
calcMultiplyDim(Dimensions l, Dimensions r)
java.lang.Object
eval(java.lang.Object l, java.lang.Object r)
java.lang.Object
mul(java.lang.Object l, java.lang.Object r)
-
Methods inherited from class com.singularsys.jep.functions.NaryBinaryFunction
checkNumberOfParameters, eval, instanceOf, instanceOf, run
-
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
-
-
-
Constructor Detail
-
MatrixMul
public MatrixMul(FieldI mfield2)
- Parameters:
mfield2
-
-
-
Method Detail
-
mul
public java.lang.Object mul(java.lang.Object l, java.lang.Object r) throws EvaluationException
- Throws:
EvaluationException
-
calcDims
public Dimensions calcDims(Dimensions... inDims) throws ParseException
Description copied from interface:MatrixFunctionI
Attempts to calculate the dimensions of a result of a PostfixMathCommand.- Specified by:
calcDims
in 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
-
calcMultiplyDim
public Dimensions calcMultiplyDim(Dimensions l, Dimensions r) throws ParseException
- Throws:
ParseException
-
eval
public java.lang.Object eval(java.lang.Object l, java.lang.Object r) throws EvaluationException
- Specified by:
eval
in classNaryBinaryFunction
- Throws:
EvaluationException
-
-