Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pMdiag

Generates a diagonal polynomial square matrix


Description

The genareted matrix a diagonal matrix of the given dimension with the diagonal elements given as input.

Usage

pMdiag(p, diag_dim, symb="x")

Arguments

p

a polynomial object or list of polynomial objects for diagonal elements

diag_dim

the row and column size of the diagonal matrix

symb

the symbol used in the polynomial matrix

Value

A 'polyMatrix' class type polynomial matrix with given diagonal elements.

See Also

Examples

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)

polyMatrix

Infrastructure for Manipulation Polynomial Matrices

v0.3.1
MIT + file LICENSE
Authors
Tamas Prohle [aut], Peter Prohle [aut], Nikolai Ryzhkov [aut, cre], Ildiko Laszlo [aut] (<https://orcid.org/0000-0003-2324-8183>), Ulas Onat Alakent [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.