<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3018.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>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</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>a=array([1,2,3,4])</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>b = a[0:4:2] + cmath.sqrt(-1)*a[1:4:2]</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Is there a more elegant way ?  I am hoping to 
avoid explicit for loops etc</FONT></DIV></BODY></HTML>