Re: [Numpy-discussion] masked ufuncs in C: on github

2009-05-16 Thread Charles R Harris
On Sat, May 16, 2009 at 2:02 AM, Eric Firing wrote: > Charles R Harris wrote: > > > > > > On Fri, May 15, 2009 at 7:48 PM, Eric Firing > > wrote: > > > > > > http://www.mail-archive.com/numpy-discussion@scipy.org/msg17595.html > > > > Prompted by the thread abo

Re: [Numpy-discussion] masked ufuncs in C: on github

2009-05-16 Thread David Cournapeau
Eric Firing wrote: > That would incur the overhead of an extra function call for each > element; I suspect it would slow it down a lot. My motivation is to make > masked array overhead negligible, at least for medium to large arrays. > You can use inline in that case - starting with numpy 1.3

Re: [Numpy-discussion] masked ufuncs in C: on github

2009-05-16 Thread Matthieu Brucher
2009/5/16 Robert Kern : > On Sat, May 16, 2009 at 03:02, Eric Firing wrote: >> Charles R Harris wrote: > >>> Here the if ... continue needs to follow the declaration: >>> >>>         if (*mp1) continue; >>>         float in1 = *(float *)ip1; >>>         float in2 = *(float *)ip2; >>>         *(flo

Re: [Numpy-discussion] masked ufuncs in C: on github

2009-05-16 Thread Robert Kern
On Sat, May 16, 2009 at 03:02, Eric Firing wrote: > Charles R Harris wrote: >> Here the if ... continue needs to follow the declaration: >> >>         if (*mp1) continue; >>         float in1 = *(float *)ip1; >>         float in2 = *(float *)ip2; >>         *(float *)op1 = f(in1, in2); >> > > I w

Re: [Numpy-discussion] masked ufuncs in C: on github

2009-05-16 Thread Eric Firing
Charles R Harris wrote: > > > On Fri, May 15, 2009 at 7:48 PM, Eric Firing > wrote: > > > http://www.mail-archive.com/numpy-discussion@scipy.org/msg17595.html > > Prompted by the thread above, I decided to see what it would take to > implement ufuncs wit

Re: [Numpy-discussion] masked ufuncs in C: on github

2009-05-15 Thread Charles R Harris
On Fri, May 15, 2009 at 7:48 PM, Eric Firing wrote: > > http://www.mail-archive.com/numpy-discussion@scipy.org/msg17595.html > > Prompted by the thread above, I decided to see what it would take to > implement ufuncs with masking in C. I described the result here: > > http://www.mail-archive.com

[Numpy-discussion] masked ufuncs in C: on github

2009-05-15 Thread Eric Firing
http://www.mail-archive.com/numpy-discussion@scipy.org/msg17595.html Prompted by the thread above, I decided to see what it would take to implement ufuncs with masking in C. I described the result here: http://www.mail-archive.com/numpy-discussion@scipy.org/msg17698.html Now I am starting a n