[Numpy-discussion] Efficiently converting a numarray object to Numeric

Francesc Altet faltet at carabos.com
Wed Feb 9 07:38:16 EST 2005


I'm wondering if there is a more efficient way to convert a numarray
object into a Numeric one than:

>>> import Numeric
>>> import numarray
>>> from time import time
>>> a = numarray.arange(100*1000)
>>> t1=time();b=Numeric.array(a);time()-t1

Any suggestions?

>qo<   Francesc Altet     http://www.carabos.com/
V  V   Cárabos Coop. V.   Enjoy Data

More information about the NumPy-Discussion mailing list