[SciPy-user] Using SciPy/NumPy optimization THANKS!

Robert Kern robert.kern@gmail....
Wed Feb 28 15:07:48 CST 2007

Brandon Nuttall wrote:
> Folks,
> Thanks to Alok Singhal and Robert Kern I have not only learned a great deal 
> about SciPy and NumPy, but I have code that works. Thanks for the tip on 
> not looping; it does make cleaner code. I have two issues: 1) there must be 
> a better way to convert a list of data pairs to two arrays,

xy = array([[x0, y0], [x1, y1], ...])
x = xy[:,0]
y = xy[:,1]

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the SciPy-user mailing list