Learn R Programming

polyMatrix (version 0.3.1)

pMsgn: Change the sign of a polynomial matrix object

Description

Multiplies the given polyMatrix by -1, and returns the -1 times the given polynomial matrix.

Usage

pMsgn(pm)

Arguments

pm

a polynomial matrix object

Value

The polynomial matrix for which the pm+pMsgn(pm) equals a zero polynomial matrix.

See Also

Ops.polyMatrix

Examples

Run this code
# NOT RUN {
A <- polyMgen.a()
A
class(A) # "polyMarray" "polyMatrix"

A - polyMconvert(A,"polyMbroad")
A - polyMconvert(A,"polyMcells")
A - polyMconvert(A,"polyMdlist")

A + pMsgn(polyMconvert(A,"polyMbroad"))
A + pMsgn(polyMconvert(A,"polyMcells"))
A + pMsgn(polyMconvert(A,"polyMdlist"))

# clean up
# rm(A)
# }

Run the code above in your browser using DataLab