public class MSubtract extends Subtract implements BinaryOperatorI
curNumberOfParameters, numberOfParameters
Constructor and Description |
---|
MSubtract() |
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.
|
Matrix |
sub(Matrix lhs,
Matrix rhs)
Adds two matrices.
|
MVector |
sub(MVector lhs,
MVector rhs)
Adds two vectors.
|
java.lang.Object |
sub(java.lang.Object param1,
java.lang.Object param2)
Adds two objects.
|
Tensor |
sub(Tensor lhs,
Tensor rhs)
Adds two matrices.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkNumberOfParameters, getNumberOfParameters, run, setCurNumberOfParameters
public Dimensions calcDim(Dimensions ldim, Dimensions rdim)
BinaryOperatorI
calcDim
in interface BinaryOperatorI
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs, MatrixValueI rhs) throws ParseException
calcValue
in interface BinaryOperatorI
res
- - results will be stored in this objectlhs
- - lhs valuerhs
- - rhs valueParseException
public java.lang.Object sub(java.lang.Object param1, java.lang.Object param2) throws ParseException
sub
in class Subtract
ParseException
public MVector sub(MVector lhs, MVector rhs) throws ParseException
ParseException
public Matrix sub(Matrix lhs, Matrix rhs) throws ParseException
ParseException
public Tensor sub(Tensor lhs, Tensor rhs) throws ParseException
ParseException
http://www.singularsys.com/jep Copyright © 2007 Singular Systems