powered by
Returns a polynomial matrix in which the given element are changed to the new given elements.
# S3 method for polyMatrix set(pm,i,j,m,byrow=FALSE)
a polyMatrix class object
polyMatrix
the vector of row
the vector of column indexes
the list of polynomial class new elements
polynomial
logical. If FALSE (the default) the m used by columns, otherwise by rows
m
A polynomial matrix with the over written elements.
lead
# NOT RUN { 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) # }
Run the code above in your browser using DataLab