[Numpy-discussion] Complex128
Pauli Virtanen
pav@iki...
Sun Jul 18 18:02:50 CDT 2010
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
More information about the NumPy-Discussion
mailing list