Re: [Numpy-discussion] saving complex vector

2009-07-15 Thread Pauli Virtanen
Wed, 15 Jul 2009 10:05:12 -0400, Neal Becker kirjoitti: > Simple question. I want to save a complex vector as text in format > > real_0 imag_0\n > real_1 imag_1\n > ... > > I thought to use something like: > np.savetxt ('gen_qpsk.txt', (mod_out.real, mod_out.imag), fmt='%g %g\n') > > I need a

Re: [Numpy-discussion] saving complex vector

2009-07-15 Thread Robert Kern
On Wed, Jul 15, 2009 at 09:05, Neal Becker wrote: > Simple question.  I want to save a complex vector as text in format > > real_0 imag_0\n > real_1 imag_1\n > ... > > I thought to use something like: > np.savetxt ('gen_qpsk.txt', (mod_out.real, mod_out.imag), fmt='%g %g\n') > > I need a way to rei

Re: [Numpy-discussion] saving complex vector

2009-07-15 Thread Dave
Neal Becker gmail.com> writes: > > Simple question. I want to save a complex vector as text in format > > real_0 imag_0\n > real_1 imag_1\n > ... > > I thought to use something like: > np.savetxt ('gen_qpsk.txt', (mod_out.real, mod_out.imag), fmt='%g %g\n') > > I need a way to reinterpret th

[Numpy-discussion] saving complex vector

2009-07-15 Thread Neal Becker
Simple question. I want to save a complex vector as text in format real_0 imag_0\n real_1 imag_1\n ... I thought to use something like: np.savetxt ('gen_qpsk.txt', (mod_out.real, mod_out.imag), fmt='%g %g\n') I need a way to reinterpret the complex data as an array with 2 columns to make this