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

Mathew Yeates myeates at jpl.nasa.gov
Thu Feb 22 17:50:16 EST 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)

Mathew

-- 







More information about the NumPy-Discussion mailing list