Conversion between the 'matrix' and 'polyMatrix' class representation of constant matrices.
Usage
M2pM(m, class=CLASS_MARRAY)
pM2M(pM)
Arguments
m
a matrix class object
class
the required class of the value: CLASS_MARRAY, CLASS_MBROAD,
CLASS_MCELLS, and CLASS_MDLIST
pM
a polyMatrix class object
Value
The M2pM(m) returns the given 'm' matrix in 'polyMatrix' class form.
The pM2M(pM) returns the given 'pM' polynomial matrix in 'matrix' class form,
if it is a constant matrix, otherwise gives an error message.
Details
M2pM converts the matrix class objets to an polyMatrix class object.
pM2M converts the zero degree polyMatrix class objects to an matrix object.