Learn R Programming

polyMatrix (version 0.9.16)

polyMatrix-Arith: Arithmetic Operators

Description

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

Usage

# 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)

Arguments

e1, e2

first and second operands

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 -

Details

Both operands can be:

  • numerical scalar

  • polynomial scalar

  • numerical matrix

  • polynomial matrix