Re: [Numpy-discussion] Complex128

2010-07-20 Thread Pauli Virtanen
Tue, 20 Jul 2010 08:17:18 +0200, Scott Sinclair wrote: [clip] import numpy as np np.__version__ > '1.4.1' np.array([0,0], dtype='Complex128') > array([0.0+0.0j, 0.0+0.0j], dtype=complex256) np.array([0,0], dtype='Complex64') > array([ 0.+0.j, 0.+0.j]) np.array([0,0], dtype

Re: [Numpy-discussion] Complex128

2010-07-19 Thread Scott Sinclair
>On 19 July 2010 10:23, Pauli Virtanen wrote: > Sun, 18 Jul 2010 21:15:15 -0500, Ross Harder wrote: > >> 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. > > Do you get the sa

Re: [Numpy-discussion] Complex128

2010-07-19 Thread Pauli Virtanen
Sun, 18 Jul 2010 21:15:15 -0500, Ross Harder wrote: > 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. Do you get the same behavior also from import numpy as np

Re: [Numpy-discussion] Complex128

2010-07-18 Thread Ross Harder
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 wrote: > Sun, 18 Jul 2010 17:26:13 -0500, Ross Harder wrote: >> I don't u

Re: [Numpy-discussion] Complex128

2010-07-18 Thread Pauli Virtanen
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

[Numpy-discussion] Complex128

2010-07-18 Thread Ross Harder
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+