Re: [Numpy-discussion] Optimization of loops

2008-10-23 Thread Pierre Yger
ou solve a big part of my problem. I'll see how to use generator and how it speeds up or not the whole process. I would also be very interested to know what the code looks like with Cython and what are the results Cheers, Pierre Yger >>>> spikes = [(0, 2.3),(1, 5.6),(3, 2.5),

[Numpy-discussion] Optimization of loops

2008-10-22 Thread Pierre Yger
Hi all, This is my first mail to the mailing list, and I would like to know if anybody has a great idea about the use or not of Numpy and loops in Python. So here is my problem : I've a large list of tuple (id, time), id being integer between [0, ..., N] and time float values. I want to have a