powered by
The genareted matrix a diagonal matrix of the given dimension with the diagonal elements given as input.
pMdiag(p, diag_dim, symb="x")
a polynomial object or list of polynomial objects for diagonal elements
polynomial
the row and column size of the diagonal matrix
the symbol used in the polynomial matrix
A 'polyMatrix' class type polynomial matrix with given diagonal elements.
diag
# NOT RUN { pMdiag(ch2pn("1"),3) pMdiag(ch2pn("1+2*x+3*x^2"),3) pMdiag(ch2pn(c("x","2*x","3*x","4*x")),3) pMdiag(ch2pn(c("x","2*x","3*x","4*x")),6) # }
Run the code above in your browser using DataLab