Re: [Numpy-discussion] Ufunc memory access optimization

2010-07-01 Thread Hans Meine
Hi Pauli and Anne, On Tuesday 15 June 2010 13:37:30 Pauli Virtanen wrote: > pe, 2010-06-11 kello 10:52 +0200, Hans Meine kirjoitti: > > At the bottom you can see that he basically wraps all numpy.ufuncs he can > > find in the numpy top-level namespace automatically. > > Ok, here's the branch: >

Re: [Numpy-discussion] Ufunc memory access optimization

2010-06-15 Thread Pauli Virtanen
ti, 2010-06-15 kello 11:35 -0400, Anne Archibald kirjoitti: [clip: Numpy ufunc inner loops are slow] > This is a bit strange. I think I'd still vote for including this > optimization, since one hopes the inner loop will get faster at some > point. (If nothing else, the code generator can probably

Re: [Numpy-discussion] Ufunc memory access optimization

2010-06-15 Thread Charles R Harris
On Tue, Jun 15, 2010 at 9:37 AM, David Cournapeau wrote: > On Wed, Jun 16, 2010 at 12:16 AM, Pauli Virtanen wrote: > > ti, 2010-06-15 kello 10:10 -0400, Anne Archibald kirjoitti: > >> Correct me if I'm wrong, but this code still doesn't seem to make the > >> optimization of flattening arrays as m

Re: [Numpy-discussion] Ufunc memory access optimization

2010-06-15 Thread David Cournapeau
On Wed, Jun 16, 2010 at 12:16 AM, Pauli Virtanen wrote: > ti, 2010-06-15 kello 10:10 -0400, Anne Archibald kirjoitti: >> Correct me if I'm wrong, but this code still doesn't seem to make the >> optimization of flattening arrays as much as possible. The array you >> get out of np.zeros((100,100)) c

Re: [Numpy-discussion] Ufunc memory access optimization

2010-06-15 Thread Anne Archibald
On 15 June 2010 11:16, Pauli Virtanen wrote: > ti, 2010-06-15 kello 10:10 -0400, Anne Archibald kirjoitti: >> Correct me if I'm wrong, but this code still doesn't seem to make the >> optimization of flattening arrays as much as possible. The array you >> get out of np.zeros((100,100)) can be itera

Re: [Numpy-discussion] Ufunc memory access optimization

2010-06-15 Thread Pauli Virtanen
ti, 2010-06-15 kello 10:10 -0400, Anne Archibald kirjoitti: > Correct me if I'm wrong, but this code still doesn't seem to make the > optimization of flattening arrays as much as possible. The array you > get out of np.zeros((100,100)) can be iterated over as an array of > shape (1,), which sho

Re: [Numpy-discussion] Ufunc memory access optimization

2010-06-15 Thread Anne Archibald
Correct me if I'm wrong, but this code still doesn't seem to make the optimization of flattening arrays as much as possible. The array you get out of np.zeros((100,100)) can be iterated over as an array of shape (1,), which should yield very substantial speedups. Since most arrays one operates

[Numpy-discussion] Ufunc memory access optimization

2010-06-15 Thread Pauli Virtanen
pe, 2010-06-11 kello 10:52 +0200, Hans Meine kirjoitti: > On Friday 11 June 2010 10:38:28 Pauli Virtanen wrote: [clip] > > I think I there was some code ready to implement this shuffling. I'll try > > to dig it out and implement the shuffling. > > That would be great! > > Ullrich Köthe has implem