
Last chance! 50% off unlimited learning
Sale ends in
Checks the consistency of a polyMatrix
object.
In the polyMatrix
there are four different but equivalent
storing methods of polynomial matrices.
pMstr(pm)
a polynomial matrix
A logical value of the consistency of the given polynomial object. In case of inconsistency an information about the errors.
# 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