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: 2d vectorization challenge
Replies: 10   Last Post: Apr 19, 2009 4:27 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dimitri Shvorob

Posts: 49
Registered: 4/1/08
Re: 2d vectorization challenge
Posted: Apr 19, 2009 9:32 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Sorry, wrong snippet.

n = 1e3;
x = rand(n,2);
P = nan(n);
tic
for i = 1:n
for j = 1:n
P(i,j) = sin(x(i,:).*x(j,:));
end
end
toc



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.