[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vectorization question
Pavel Romashkin <promashkin@cmdl.noaa.gov> writes:
> IDL> pavel, a, b, x, iter=10
> 5.6166667
> IDL> craig, a, b, x, iter=10
> 4.7333333
>
> Just as I expected, Craig's code is more efficient than mine (the magic
> of Histogram!). Good answer to those "when to use a loop" questions.
> IDL 5.3, PowerMac G4-400.
Woohoo! :-)
Craig
[ "Just as expected." Jeez... I would argue they are about equally
efficient to first order. My code is definitely sensitive to the
*distribution* of repeats. If there is a very wide range in the
number of repeats then my code will be impacted. ]
--
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------