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
Matrix multiplication
3 messages · Patrik Waldmann, Claudia Beleites, Simon Urbanek
Dear Patrick,
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?
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
Claudia Beleites Spectroscopy/Imaging Institute of Photonic Technology Albert-Einstein-Str. 9 07745 Jena Germany email: claudia.beleites at ipht-jena.de phone: +49 3641 206-133 fax: +49 2641 206-399
On Mar 12, 2012, at 5:40 AM, Patrik Waldmann wrote:
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?
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