Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Is there a parallel version of matrix multiplication in MATLAB?
Date: Wed, 4 Nov 2009 01:35:19 +0000 (UTC)
Organization: Boeing
Lines: 11
Message-ID: <hcqlon$g2p$1@fred.mathworks.com>
References: <hcqehk$17u$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257298519 16473 172.30.248.37 (4 Nov 2009 01:35:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 01:35:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:582220


"Cindy" <xzhan2@fhcrc.org> wrote in message <hcqehk$17u$1@fred.mathworks.com>...
> Hi, I am calculating powers of large matrix. For example, taking a matrix of size 2000*2000 to the power of 6. I know that MATLAB  is known for its performance in matrix operations. But in this case, it is still quite slow. 
> 
> I have the parallel toolbox, I'm wondering is there any parallel version of matrix multiplication available? If so, could anyone give me a short example of how to use it?
> 
> Thanks so much!
> Cindy

MATLAB uses calls to a BLAS library to do matrix multiplication, and those calls use parallel processing. I believe this became part of MATLAB beginning in R2007a (although you had to manually turn it on in that version), and became the default behavior in R2008a(?). So you will not get any speedup by trying to manually piece up the calculation and parallelize (is that a word?) it yourself.

James Tursa