The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: matlab slow for loop
Replies: 9   Last Post: Jan 8, 2013 5:46 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bruno Luong

Posts: 9,822
Registered: 7/26/08
Re: matlab slow for loop
Posted: Jan 8, 2013 2:02 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Eric Sampson" wrote in message <kchpbs$48s$>...

> b) the interesting part: if you do use sum as a variable, then the function speed is only affected slightly - but the CL/script speed goes out the window! This could be one of those cases where the loop is being interpreted; hypothetically perhaps the compiler can't handle function/variable overloading as well in the CL/script case due to the looser variable scoping rules compared to functions. Regardless I'll submit a enhancement request to TMW and see what comes of it.

I did suggested at one point that the base (command line) workspace would be beneficial of the same JIT accelerator as function. I believe my request get unoticed or ignored by TMW. :-(

They might have the reason not to do so, but I have no idea what.

You might get a better chance.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.