in reply to Re^4: Optimizing a double loop
in thread Optimizing a double loop

You're right on both accounts.

I just used += because from reading your initial question I wasn't sure if you needed absolute values, or add them to an existing array.

Replies are listed 'Best First'.
Re^6: Optimizing a double loop
by roibrodo (Sexton) on Jun 03, 2010 at 14:17 UTC
    Thanks! Your suggestion proved to be a brilliant idea.
    I got a five-fold improvement in running time!
    Thanks so much! (and sorry for all the exclamation points, I'm just excited!)
      I got a five-fold improvement in running time!

      How long are your runs taking now?