Learn R Programming

polyMatrix (version 0.2.5)

pMstr: polyMatrix object consistency check

Description

Checks the consistency of a polyMatrix object. In the polyMatrix there are four different but equivalent storing methods of polynomial matrices.

Usage

pMstr(pm)

Arguments

pm

a polynomial matrix

Value

A logical value of the consistency of the given polynomial object. In case of inconsistency an information about the errors.

See Also

polyMgen.a, polyMgen.b, polyMgen.c, polyMgen.d

Examples

Run this code
# NOT RUN {
A <- polyMgen.a(2,3,5)
B <- polyMconvert(A,"polyMdlist")
# }
# NOT RUN {
pMstr(B)$cns

## class of elements: polynomial
B[[1]][[1]]<-1
str(B)
(pMstr(B))

## class of sublists: list
B[[1]]<-1:length(B[[1]])
str(B)
pMstr(B)

# absence of an element
B[[1]]<-as.list(B[[1]][-1])
str(B)
pMstr(B)[[3]]

# clean up
# rm(A, B)

# }
# NOT RUN {
 # % end of donttest
# }

Run the code above in your browser using DataLab