Re: [Numpy-discussion] dumb question about creating a complex array

2007-02-22 Thread Mathew Yeates
Thanks for the replies. I think I have enough to work with. Mathew Christopher Barker wrote: > Mathew Yeates wrote: > >> given an array of floats, 2N columns and M rows, where the elements >> A[r,2*j] and A[r,2*j+1] form the real and imaginary parts of a complex >> number ... What is th

Re: [Numpy-discussion] dumb question about creating a complex array

2007-02-22 Thread Christopher Barker
Mathew Yeates wrote: > given an array of floats, 2N columns and M rows, where the elements > A[r,2*j] and A[r,2*j+1] form the real and imaginary parts of a complex > number ... What is the simplest way to create a complex array? It's > a fairly large array so I want to keep copying to a mini

Re: [Numpy-discussion] dumb question about creating a complex array

2007-02-22 Thread Stefan van der Walt
On Thu, Feb 22, 2007 at 02:50:16PM -0800, Mathew Yeates wrote: > given an array of floats, 2N columns and M rows, where the elements > A[r,2*j] and A[r,2*j+1] form the real and imaginary parts of a complex > number ... What is the simplest way to create a complex array? It's > a fairly large

Re: [Numpy-discussion] dumb question about creating a complex array

2007-02-22 Thread Stefan van der Walt
Hi Matthew On Thu, Feb 22, 2007 at 02:50:16PM -0800, Mathew Yeates wrote: > given an array of floats, 2N columns and M rows, where the elements > A[r,2*j] and A[r,2*j+1] form the real and imaginary parts of a complex > number ... What is the simplest way to create a complex array? It's > a

[Numpy-discussion] dumb question about creating a complex array

2007-02-22 Thread Mathew Yeates
given an array of floats, 2N columns and M rows, where the elements A[r,2*j] and A[r,2*j+1] form the real and imaginary parts of a complex number ... What is the simplest way to create a complex array? It's a fairly large array so I want to keep copying to a minimum. (Actually, it's not a f