Skip to content

Matrix multiplication

3 messages · Patrik Waldmann, Claudia Beleites, Simon Urbanek

#
Dear members,

I noticed that there isn't a function for matrix multiplication in the new parallel library. What would be the most efficient way to do a matrix multiplication there?

Patrik Waldmann
#
Dear Patrick,
I use libgotoblas2 / libopenblas which automatically does multithreaded
%*% matrix multiplication. There's an environment variable
GOTO_NUM_THREADS to decide how many threads to use.

Best,

Claudia Beleites
#
On Mar 12, 2012, at 5:40 AM, Patrik Waldmann wrote:

            
The parallel package is for *explicit* parallelization. R already does implicit parallelization (using OpenMP or multi-threaded BLAS or both) automatically - this includes matrix multiplication.

Cheers,
Simon