From: Eric H. <eha...@ho...> - 2001-03-14 01:42:38
|
I have an array of floats that is an interleaved stream of complex = (real/imag) values that I want to promote to complex. My current method = uses the following a=3Darray([1,2,3,4]) b =3D a[0:4:2] + cmath.sqrt(-1)*a[1:4:2] Is there a more elegant way ? I am hoping to avoid explicit for loops = etc |