Re: [Numpy-discussion] numpy/numexpr performance (particle simulation)

2009-06-29 Thread Kurt Smith
On Mon, Jun 29, 2009 at 8:20 AM, Prashant Saxenaanimator...@yahoo.com wrote: Hi, I am doing a little test using numpy and numexpr to do a particle simulation. I never used either of them much and this is the first time I have to go deeper. Here is the code: import numpy as np import

Re: [Numpy-discussion] numpy/numexpr performance (particle simulation)

2009-06-29 Thread Ian Mallett
As an off-topic solution, there's always the GPU to do the the particle updating. With half decent optimization, I've gotten over a million particles in *real-time*. You could presumably run several of these at the same time to get as many particles as you want. Downside would be