Phasing
Physics articles and information
-
Vectorization
Posted on June 10th, 2009 No commentsWhen your mommy tells you that you should vectorize Octave/MATLAB code, she means it. A couple hours spent neatly vectorizing a short but important piece of simulation code yielded, perhaps unsurprisingly, a 3+ order of magnitude speedup.

The unvectorized code needed to produce this plot is still running – has been since mid-afternoon. It’s now 40% done at 8:30 pm.

The vectorized code produced this higher resolution and wider ranged result in about a minute, using only half the chip.
Yes, Virginia, the plots look really boring. That’s actually good.
Leave a reply














