|
From: Jeff W. <js...@fa...> - 2006-02-03 22:34:18
|
Hi: I've noticed that code like this is really slow in numpy (0.9.4): import numpy as NP a = NP.ones(10000,'d') a = [2.*a1 for a1 in a] the last line takes 0.17 seconds on my G5, while for Numeric and numarray it takes only 0.01. Anyone know the reason for this? -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |