[Numpy-discussion] Slow conversion from list to arrays
Nadav Horesh
nadavh at VisionSense.com
Thu Dec 25 00:31:01 EST 2003
The conversion for a list of large arrays into a matrix is very slow in
numarray while reasonably fast:
>>> from numarray import *
>>> a = [arange(200000), arange(200000), arange(200000), arange(200000)]
>>> aa = array(a) # Very slow
--------------------------------
>>> from Numeric import *
>>> a = [arange(200000), arange(200000), arange(200000), arange(200000)]
>>> aa = array(a) # Fast
Python version: 2.3.3
numarray version: Official 0.8
Tested under WinXP and RH9 linux.
Any workaround?
Nadav
More information about the NumPy-Discussion
mailing list