Re: [Numpy-discussion] vectorizing recursive sequences

2013-10-26 Thread Bago
This behavior seems to depend on the order in which elements of the arrays are processes. That seems like a dangerous thing to rely on, the main reason I can thing of that someone would want to change the loop order is to implement parallel ufuncs. Bago On Fri, Oct 25, 2013 at 12:32 PM, Jaime

[Numpy-discussion] vectorizing recursive sequences

2013-10-25 Thread Jaime Fernández del Río
I recently came up with a way of vectorizing some recursive sequence calculations. While it works, I am afraid it is relying on implementation details potentially subject to change. The basic idea is illustrated by this function, calculating the first n items of the Fibonacci sequence: def

Re: [Numpy-discussion] vectorizing recursive sequences

2013-10-25 Thread Pierre Haessig
Jaime Fernández del Río jaime.f...@gmail.com a écrit : I recently came up with a way of vectorizing some recursive sequence calculations. While it works, I am afraid it is relying on implementation details potentially subject to change. The basic idea is illustrated by this function, calculating