public class MDivide extends Divide implements BinaryOperatorI
| Modifier and Type | Field and Description |
|---|---|
protected Add |
add |
protected Subtract |
sub |
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
MDivide() |
| Modifier and Type | Method and Description |
|---|---|
Dimensions |
calcDim(Dimensions l,
Dimensions r)
Find the dimensions of this operator when applied to arguments with given dimensions.
|
MatrixValueI |
calcValue(MatrixValueI res,
MatrixValueI param1,
MatrixValueI param2)
Calculates the value of this operator for given input with results stored in res.
|
Object |
div(MatrixValueI param1,
MatrixValueI param2)
Divide two objects.
|
Object |
div(Object param1,
Object param2)
Divide two objects.
|
void |
run(Stack stack)
Need to redo this as the standard jep version assumes commutivity.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNumberOfParameters, getNumberOfParameters, setCurNumberOfParameterspublic void run(Stack stack) throws ParseException
run in interface PostfixMathCommandIrun in class DivideParseExceptionpublic Object div(Object param1, Object param2) throws ParseException
div in class DivideParseExceptionpublic Object div(MatrixValueI param1, MatrixValueI param2) throws ParseException
ParseExceptionpublic Dimensions calcDim(Dimensions l, Dimensions r) throws ParseException
BinaryOperatorIcalcDim in interface BinaryOperatorIParseExceptionpublic MatrixValueI calcValue(MatrixValueI res, MatrixValueI param1, MatrixValueI param2) throws ParseException
BinaryOperatorIcalcValue in interface BinaryOperatorIParseExceptionCopyright © 2018. All rights reserved.