Package com.singularsys.jep.functions
Class Dot
- java.lang.Object
-
- com.singularsys.jep.functions.PostfixMathCommand
-
- com.singularsys.jep.functions.BinaryFunction
-
- com.singularsys.jep.functions.Dot
-
- All Implemented Interfaces:
PostfixMathCommandI
,java.io.Serializable
- Direct Known Subclasses:
MatrixDot
public class Dot extends BinaryFunction
The dot product of two vectors.- Author:
- Richard Morris
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Add
add
protected Multiply
mul
-
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
-
Constructor Summary
Constructors Constructor Description Dot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
dot(java.lang.Object param1, java.lang.Object param2)
java.lang.Object
dot(java.util.Vector<?> v1, java.util.Vector<?> v2)
java.lang.Object
eval(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
-
-
-
-
Method Detail
-
eval
public java.lang.Object eval(java.lang.Object l, java.lang.Object r) throws EvaluationException
- Specified by:
eval
in classBinaryFunction
- Throws:
EvaluationException
-
dot
public java.lang.Object dot(java.lang.Object param1, java.lang.Object param2) throws EvaluationException
- Throws:
EvaluationException
-
dot
public java.lang.Object dot(java.util.Vector<?> v1, java.util.Vector<?> v2) throws EvaluationException
- Throws:
EvaluationException
-
-