Generates a diagonal polynomial square matrix
The genareted matrix a diagonal matrix of the given dimension with the diagonal elements given as input.
pMdiag(p, diag_dim, symb="x")
p |
a |
diag_dim |
the row and column size of the diagonal matrix |
symb |
the symbol used in the polynomial matrix |
A 'polyMatrix' class type polynomial matrix with given diagonal elements.
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)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.