Class MatrixDot
- java.lang.Object
-
- com.singularsys.jep.functions.PostfixMathCommand
-
- com.singularsys.jep.functions.BinaryFunction
-
- com.singularsys.jep.functions.Dot
-
- com.singularsys.extensions.matrix.functions.MatrixDot
-
- All Implemented Interfaces:
MatrixFunctionI
,PostfixMathCommandI
,java.io.Serializable
public class MatrixDot extends Dot implements MatrixFunctionI
Calculates the dot-product of two vectors using a MatrixField.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
-
Constructor Summary
Constructors Constructor Description MatrixDot(MatrixFieldI mfact)
-
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.java.lang.Object
dot(java.lang.Object l, java.lang.Object r)
-
Methods inherited from class com.singularsys.jep.functions.BinaryFunction
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
-
MatrixDot
public MatrixDot(MatrixFieldI mfact)
- Parameters:
mfact
-
-
-
Method Detail
-
dot
public java.lang.Object dot(java.lang.Object l, java.lang.Object r) throws EvaluationException
- Overrides:
dot
in classDot
- 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
-
-