[Numpy-discussion] numpy speed question

David Cournapeau cournape@gmail....
Thu Nov 25 16:31:13 CST 2010

On Thu, Nov 25, 2010 at 7:55 PM, Jean-Luc Menut <jeanluc.menut@free.fr> wrote:

> Yes I know but IDL share this characteristics with numpy, and sometimes
> you cannot avoid loop. Anyway it was just a test to compare the speed of
> the cosine function in IDL and numpy.

No, you compared IDL looping and python looping. You did not even use
numpy. Loops are slow in python, and will remain so in the near
future. OTOH, there are many ways to deal with this issue in python
compared to IDL (cython being a fairly popular one).


More information about the NumPy-Discussion mailing list