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

set.pMatrix

Overwrite a subpart of a polynomial matrix


Description

Returns a polynomial matrix in which the given element are changed to the new given elements.

Usage

## S3 method for class 'polyMatrix'
set(pm,i,j,m,byrow=FALSE)

Arguments

pm

a polyMatrix class object

i

the vector of row

j

the vector of column indexes

m

the list of polynomial class new elements

byrow

logical. If FALSE (the default) the m used by columns, otherwise by rows

Value

A polynomial matrix with the over written elements.

See Also

Examples

pM <- polyMgen.d(3,3,rawData=
   ch2pn(c("-3+x^3","2+4*x","x^2","1","2","3+x","2*x","0","2-3*x")))
pM

set(pM,1:2,1:2,ch2pn(c("3","4","x","x^2")))

# clean up
# rm(pM)

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.