[Numpy-discussion] Complex128

Ross Harder rharderlists@gmail....
Sun Jul 18 17:26:13 CDT 2010


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?

if i ask for complex128 (little c) I get complex128
if i ask for complex (little c) i get complex128
if i ask for Complex (cap C) i get unrecognized type


More information about the NumPy-Discussion mailing list