Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: parfor slicing question
Replies: 2   Last Post: Jan 20, 2014 11:53 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Suresh Narayanan

Posts: 122
Registered: 12/7/04
parfor slicing question
Posted: Jan 17, 2014 7:04 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

How do I make the following loop work faster using parallel toolbox?
Currently, it complains that Iqt is indexed and not sliced in the inner for loop.
Would this be better on a GPU?
parfor k = 1 : n2tframes

for l = 1 : n2tframes
if ( l < k )
C(k,l)=mean(Iqt(:,k).*Iqt(:,l)) ; % Mark's version




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.