Re: [Rd] Matrix*vector: coercing sparse to dense matrix for arithmetic

2006-11-29 Thread Douglas Bates
On 11/29/06, Tamas K Papp <[EMAIL PROTECTED]> wrote: > I have a sparse Matrix (kronecker product of spline design matrices), > and I need to multiply each row by a number to get another matrix. If > the matrix is A and the numbers are stored in a vector k, with plain > vanilla matrices I would do

[Rd] Matrix*vector: coercing sparse to dense matrix for arithmetic

2006-11-29 Thread Tamas K Papp
Hi, I have a sparse Matrix (kronecker product of spline design matrices), and I need to multiply each row by a number to get another matrix. If the matrix is A and the numbers are stored in a vector k, with plain vanilla matrices I would do A*k But when using the Matrix package (class of A is "