[Numpy-discussion] Complex128

Ross Harder rharderlists at gmail.com
Sun Jul 18 22:15:15 EDT 2010


mac os x leopard 10.5..
EPD installed

i just don't understand why i get one thing when i ask for another.
i can get what i want, but only by not asking for it.

thanks,
Ross


On Sun, Jul 18, 2010 at 6:02 PM, Pauli Virtanen <pav at iki.fi> wrote:
> Sun, 18 Jul 2010 17:26:13 -0500, Ross Harder wrote:
>> I don't understand the following.
>>>> a=np.zeros( (3,3,3), dtype='Complex128')
>>>>> a
>> array([[[0.0+0.0j, 0.0+0.0j, 0.0+0.0j],
>>         [0.0+0.0j, 0.0+0.0j, 0.0+0.0j],
>>         [0.0+0.0j, 0.0+0.0j, 0.0+0.0j]],
>>
>>        [[0.0+0.0j, 0.0+0.0j, 0.0+0.0j],
>>         [0.0+0.0j, 0.0+0.0j, 0.0+0.0j],
>>         [0.0+0.0j, 0.0+0.0j, 0.0+0.0j]],
>>
>>        [[0.0+0.0j, 0.0+0.0j, 0.0+0.0j],
>>         [0.0+0.0j, 0.0+0.0j, 0.0+0.0j],
>>         [0.0+0.0j, 0.0+0.0j, 0.0+0.0j]]], dtype=complex256)
>>
>> i ask for Complex128 and get complex256?
>
> What platform? On Win-64 longdouble == double.
>
> Of course, the byte-width names should still reflect the reality. Please
> file a bug ticket...
>
> --
> Pauli Virtanen
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



More information about the NumPy-Discussion mailing list