public class ElementComparative extends Comparative implements BinaryOperatorI
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
ElementComparative(int index) |
| Modifier and Type | Method and Description |
|---|---|
Dimensions |
calcDim(Dimensions ldim,
Dimensions rdim)
Find the dimensions of this operator when applied to arguments with given dimensions.
|
MatrixValueI |
calcValue(MatrixValueI res,
MatrixValueI lhs,
MatrixValueI rhs)
Multiply the inputs element by element putting the results in res.
|
void |
run(Stack inStack)
Throws an exception because this method should never be called under
normal circumstances.
|
eq, ge, getTolerance, gt, le, lt, ne, setTolerancecheckNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNumberOfParameters, getNumberOfParameters, setCurNumberOfParameterspublic Dimensions calcDim(Dimensions ldim, Dimensions rdim)
BinaryOperatorIcalcDim in interface BinaryOperatorIpublic MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs, MatrixValueI rhs) throws ParseException
calcValue in interface BinaryOperatorIParseExceptionpublic void run(Stack inStack) throws ParseException
PostfixMathCommandrun in interface PostfixMathCommandIrun in class ComparativeParseExceptionCopyright © 2018. All rights reserved.