# polyMatrix-Arith: Arithmetic Operators In polyMatrix: Infrastructure for Manipulation Polynomial Matrices

## Description

These unary and binary operators perform arithmetical operations on polynomial or numerical marices.

## Usage

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38``` ```## S4 method for signature 'polyMatrix,missing' e1 + e2 ## S4 method for signature 'polyMatrix,polyMatrix' e1 + e2 ## S4 method for signature 'polyMatrix,polynomial' e1 + e2 ## S4 method for signature 'polyMatrix,numeric' e1 + e2 ## S4 method for signature 'polyMatrix,matrix' e1 + e2 ## S4 method for signature 'ANY,polyMatrix' e1 + e2 ## S4 method for signature 'polyMatrix,numeric' e1 * e2 ## S4 method for signature 'polyMatrix,polynomial' e1 * e2 ## S4 method for signature 'polyMatrix,polyMatrix' e1 * e2 ## S4 method for signature 'ANY,polyMatrix' e1 * e2 ## S4 method for signature 'polyMatrix,polyMatrix' e1 - e2 ## S4 method for signature 'polyMatrix,ANY' e1 - e2 ## S4 method for signature 'ANY,polyMatrix' e1 - e2 ```

## Arguments

 `e1, e2` first and second operands

## Details

Both operands can be:

• numerical scalar

• polynomial scalar

• numerical matrix

• polynomial matrix

## Value

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.

## Functions

• `+,polyMatrix,missing-method`: unary `+`

• `-,polyMatrix,polyMatrix-method`: unary `-`

polyMatrix documentation built on July 18, 2021, 5:06 p.m.