From ligges at statistik.tu-dortmund.de  Fri Jan 14 12:04:47 2011
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Fri, 14 Jan 2011 12:04:47 +0100
Subject: [Rd] matrix multiplication speed R
In-Reply-To: <AANLkTinaCO61x_fWzqFFawWrnBN+LZ_APLpsaBZYAw-j@mail.gmail.com>
References: <1294992591724-3217257.post@n4.nabble.com>
	<AANLkTinaCO61x_fWzqFFawWrnBN+LZ_APLpsaBZYAw-j@mail.gmail.com>
Message-ID: <4D302DCF.1020003@statistik.tu-dortmund.de>



On 14.01.2011 11:38, Joris Meys wrote:
> Please give the code you used for the matrix multiplication. 5 times is a
> bit much.

No, it is reasonable for matrix multiplication:

Matlab ships with optimized BLAS for various CPU types. In R, you have 
to get an optimized BLAS yourself.

How to link against optimized BLAS versions or how to substitute the 
BLAS is mentioned in the R INstallation and Administration manual.

Best,
Uwe Ligges



>
> On Fri, Jan 14, 2011 at 9:09 AM, oyvfos<oyvfos at yahoo.no>  wrote:
>
>>
>> Hi,
>> A quick bench-mark of an R matrix muliplication 500by500 X 500by10000, all
>> random variates, with matlab reveals a huge difference in speed (5 times at
>> least). Is there anything that can be done in R to speed up the
>> multiplication?
>> Kind regards,  Oyvind
>> --
>> View this message in context:
>> http://r.789695.n4.nabble.com/matrix-multiplication-speed-R-tp3217257p3217257.html
>> Sent from the R devel mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
>
>



[Rd] matrix multiplication speed R
Uwe Ligges