Is there a relatively easy to implement or transparent way to multiply two large matrices in Matlab in parallel?
Ideally, I would like to perform this parallel multiplication with at most a few lines of code, perhaps something like:
C_1 = A*B % normal
C_2 = pmult(A,B) % parallel
% C_1 and C_2 have the same entries
If there is a way to easily do this paralell multiplication, can someone please point me to the code? If not, does anyone have any ideas on what they feel is the best way to implement a parallel matrix multiplication algorithm in Matlab?
Thanks in advance, awesome Stackoverflow community.
EDIT -- I believe that part of the issue I was running into is that matrix multiplication for sparse matrices is not automatically parallelized; it is automatically parallelized for dense matrices. New question: can Matlab do sparse matrix multiplication in parallel? (CPU parallelization as I don't have CUDA enabled graphics cards)