[Numpy-discussion] numpy.complex

Molinaro Céline celine.molinaro@telecom-bretagne...
Wed Jul 18 08:14:00 CDT 2012


In [2]: numpy.real(arange(3))
Out[2]: array([0, 1, 2])
In [3]: numpy.complex(arange(3))
TypeError: only length-1 arrays can be converted to Python scalars

Are there any reasons why numpy.complex doesn't work on arrays?
Should it be bug reported?

Thanks for your help

C. Molinaro

More information about the NumPy-Discussion mailing list