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

Mathew Yeates myeates@jpl.nasa....
Thu Feb 22 16:50:16 CST 2007

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 float array, its elements are byte sized, in case 
that matters)



More information about the Numpy-discussion mailing list