public class Solve extends PostfixMathCommand implements BinaryOperatorI
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
Solve() |
| 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)
Calculates the value of this operator for given input with results stored in res.
|
void |
run(Stack s)
Throws an exception because this method should never be called under
normal circumstances.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNumberOfParameters, getNumberOfParameters, setCurNumberOfParameterspublic void run(Stack s) throws ParseException
PostfixMathCommandrun in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionpublic Dimensions calcDim(Dimensions ldim, Dimensions rdim)
BinaryOperatorIcalcDim in interface BinaryOperatorIpublic MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs, MatrixValueI rhs) throws ParseException
BinaryOperatorIcalcValue in interface BinaryOperatorIParseExceptionCopyright © 2018. All rights reserved.