polyMatrix-Arith {polyMatrix}R Documentation

Arithmetic Operators

Description

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

Usage

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

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


[Package polyMatrix version 0.9.16 Index]