Re: [Numpy-discussion] Construct a large n-dimensional complex matrix

2009-04-07 Thread Robert Kern
On Tue, Apr 7, 2009 at 19:10, Jochen Schroeder wrote: > On 06/04/09 21:20, Robert Kern wrote: >> On Mon, Apr 6, 2009 at 20:53, Nathan Faggian wrote: >> > HI, >> > I want to construct a large complex matrix, I have the real and imaginary >> > components as double vectors, is there a fast way to co

Re: [Numpy-discussion] Construct a large n-dimensional complex matrix

2009-04-07 Thread Jochen Schroeder
On 06/04/09 21:20, Robert Kern wrote: > On Mon, Apr 6, 2009 at 20:53, Nathan Faggian wrote: > > HI, > > I want to construct a large complex matrix, I have the real and imaginary > > components as double vectors, is there a fast way to construct a complex > > vector in numpy? > > C = np.empty((n,m

Re: [Numpy-discussion] Construct a large n-dimensional complex matrix

2009-04-06 Thread Robert Kern
On Mon, Apr 6, 2009 at 20:53, Nathan Faggian wrote: > HI, > I want to construct a large complex matrix, I have the real and imaginary > components as double vectors, is there a fast way to construct a complex > vector in numpy? C = np.empty((n,m), dtype=complex) C.real.flat[:] = real_values C.ima

[Numpy-discussion] Construct a large n-dimensional complex matrix

2009-04-06 Thread Nathan Faggian
HI, I want to construct a large complex matrix, I have the real and imaginary components as double vectors, is there a fast way to construct a complex vector in numpy? Cheers, Nathan. Nathan Faggian, Ph.D. The