[R] Matrix Multiplication using R.

Roger Koenker rkoenker at illinois.edu
Thu Aug 15 00:05:46 CEST 2013


In the event that these are moderately sparse matrices, you could try Matrix or SparseM.


Roger Koenker
rkoenker at illinois.edu




On Aug 14, 2013, at 10:40 AM, Praveen Surendran wrote:

> Dear all,
> 
> I am exploring ways to perform multiplication of a 90000 x 40000 matrix with it's transpose.
> As expected even a 40000 x 100 %*% 100x40000 didn't work on my desktop... giving the error "Error: cannot allocate vector of length 1600000000"
> 
> However I am trying to run this on one node (64GB RAM; 2.60 GHz processor) of a high performance computing cluster.
> Appreciate if anyone has any comments on whether it's advisable to perform a matrix multiplication of this size using R and also on any better ways to handle this task.
> 
> Kind Regards,
> 
> Praveen.
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list