These unary and binary operators perform arithmetical operations on polynomial or numerical marices.
# S4 method for polyMatrix,missing
+(e1, e2)# S4 method for polyMatrix,polyMatrix
+(e1, e2)
# S4 method for polyMatrix,polynomial
+(e1, e2)
# S4 method for polyMatrix,numeric
+(e1, e2)
# S4 method for polyMatrix,matrix
+(e1, e2)
# S4 method for ANY,polyMatrix
+(e1, e2)
# S4 method for polyMatrix,numeric
*(e1, e2)
# S4 method for polyMatrix,polynomial
*(e1, e2)
# S4 method for polyMatrix,polyMatrix
*(e1, e2)
# S4 method for ANY,polyMatrix
*(e1, e2)
# S4 method for polyMatrix,polyMatrix
-(e1, e2)
# S4 method for polyMatrix,ANY
-(e1, e2)
# S4 method for ANY,polyMatrix
-(e1, e2)
first and second operands
Unary +
return same object.
Binary +
with two matrix operands returns elementwise summation.
Binary +
with matrix and scalar operands returns elementwise summation with scalar.
Binary *
is elementwise multiplication with matrix or scalar operands.
Unary -
return a matrix with changed sign.
Binary '-' of matrices or scalar operands returns matrix subtraction.
+,polyMatrix,missing-method
: unary +
-,polyMatrix,polyMatrix-method
: unary -
Both operands can be:
numerical scalar
polynomial scalar
numerical matrix
polynomial matrix