Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Speed up the nested loops (slower than inverse a large matrix)
Date: Sat, 27 Nov 2010 18:51:03 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 8
Message-ID: <icrjun$oe5$1@fred.mathworks.com>
References: <icpphd$cb2$1@fred.mathworks.com> <icpt5k$2q$1@fred.mathworks.com> <icq1vb$t6d$1@fred.mathworks.com> <icqhka$6og$1@fred.mathworks.com> <icretg$4gm$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1290883863 25029 172.30.248.38 (27 Nov 2010 18:51:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 27 Nov 2010 18:51:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:690481

"Ximing xu" <siemenxu@gmail.com> wrote in message <icretg$4gm$1@fred.mathworks.com>...

> I also tried Bruno's idea  to extract  all the 2x2 submatrices of R (also the F) and put it on 3D array; but it turn out the procedure to do the extraction  is just as slow as doing the sum directly.
> 

I guess timing depends *how* you do the extraction. A for-loop would not be optimal.

Bruno