[R] matrix.csr %*% matrix --> matrix

Sam Steingold sds at gnu.org
Tue Nov 6 19:08:30 CET 2012


The question is even more pressing for me now given that I no longer can
convert some csr matrices to the regular ones for scaling.
(http://article.gmane.org/gmane.comp.lang.r.general:279305)
Any suggestions? (the original csr matrix is too large to be converted
to a regular one, but the product is small enough).

> * Sam Steingold <fqf at tah.bet> [2012-08-27 14:58:47 -0400]:
>
> When a sparse matrix is multiplied by a regular one, the result is
> usually not sparse. However, when matrix.csr is multiplied by a regular
> matrix in R, a matrix.csr is produced.
> Is there a way to avoid this?
> Thanks!

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://www.memritv.org http://think-israel.org
http://camera.org http://openvotingconsortium.org http://honestreporting.com
If you have no enemies, you are probably dead.



More information about the R-help mailing list