Package org.lsmp.djep.vectorJep.function
Class ElementMultiply
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.nfunk.jep.function.Multiply
org.lsmp.djep.vectorJep.function.ElementMultiply
- All Implemented Interfaces:
NaryOperatorI
,PostfixMathCommandI
Multiplies any number of Vectors or Matricies element by element.
TODO could be much more efficient when called through run.
- Author:
- Rich Morris Created on 10-Dec-2004
-
Field Summary
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalcDim
(Dimensions[] dims) Find the dimensions of this operator when applied to arguments with given dimensions.calcValue
(MatrixValueI res, MatrixValueI[] inputs) Multiply the inputs element by element putting the results in res.Multiply arguments element by element.mul
(MatrixValueI param1, MatrixValueI param2) Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nfunk.jep.function.PostfixMathCommandI
checkNumberOfParameters, getNumberOfParameters, run, setCurNumberOfParameters
-
Constructor Details
-
ElementMultiply
public ElementMultiply()
-
-
Method Details
-
calcDim
Description copied from interface:NaryOperatorI
Find the dimensions of this operator when applied to arguments with given dimensions.- Specified by:
calcDim
in interfaceNaryOperatorI
- Throws:
ParseException
-
calcValue
Multiply the inputs element by element putting the results in res.- Specified by:
calcValue
in interfaceNaryOperatorI
- Throws:
ParseException
-
mul
Multiply arguments element by element. Returns result.- Overrides:
mul
in classMultiply
- Throws:
ParseException
-
mul
- Throws:
ParseException
-