com.singularsys.jep.functions
Class Dot

java.lang.Object
  extended by com.singularsys.jep.functions.PostfixMathCommand
      extended by com.singularsys.jep.functions.BinaryFunction
          extended by com.singularsys.jep.functions.Dot
All Implemented Interfaces:
PostfixMathCommandI, java.io.Serializable

public class Dot
extends BinaryFunction

The dot product of two vectors.

Author:
Richard Morris
See Also:
Serialized Form

Field Summary
protected  Add add
           
protected  Multiply mul
           
 
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
 
Constructor Summary
Dot()
           
 
Method Summary
 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
run
 
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, checkStack, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

add

protected Add add

mul

protected Multiply mul
Constructor Detail

Dot

public Dot()
Method Detail

eval

public java.lang.Object eval(java.lang.Object l,
                             java.lang.Object r)
                      throws EvaluationException
Specified by:
eval in class BinaryFunction
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


Copyright © 2010 Singular Systems http://www.singularsys.com/jep