Re: [Numpy-discussion] guvectorize, a helper for writing generalized ufuncs

2016-09-26 Thread Stephan Hoyer
I have put a pull request implementing numpy.guvectorize up for review: https://github.com/numpy/numpy/pull/8054 Cheers, Stephan On Tue, Sep 13, 2016 at 10:54 PM, Travis Oliphant wrote: > There has been some discussion on the Numba mailing list as well about a > version of

Re: [Numpy-discussion] guvectorize, a helper for writing generalized ufuncs

2016-09-13 Thread Travis Oliphant
There has been some discussion on the Numba mailing list as well about a version of guvectorize that doesn't compile for testing and flexibility. Having this be inside NumPy itself seems ideal. -Travis On Tue, Sep 13, 2016 at 12:59 PM, Stephan Hoyer wrote: > On Tue, Sep 13,

Re: [Numpy-discussion] guvectorize, a helper for writing generalized ufuncs

2016-09-13 Thread Stephan Hoyer
On Tue, Sep 13, 2016 at 10:39 AM, Nathan Goldbaum wrote: > I'm curious whether you have a plan to deal with the python functional > call overhead. Numba gets around this by JIT-compiling python functions - > is there something analogous you can do in NumPy or will this

Re: [Numpy-discussion] guvectorize, a helper for writing generalized ufuncs

2016-09-13 Thread Nathan Goldbaum
On Tue, Sep 13, 2016 at 11:47 AM, Stephan Hoyer wrote: > NumPy has the handy np.vectorize for turning Python code that operates on > scalars into a function that vectorizes works like a ufunc, but no helper > function for creating generalized ufuncs (http://docs.scipy.org/doc/

[Numpy-discussion] guvectorize, a helper for writing generalized ufuncs

2016-09-13 Thread Stephan Hoyer
NumPy has the handy np.vectorize for turning Python code that operates on scalars into a function that vectorizes works like a ufunc, but no helper function for creating generalized ufuncs ( http://docs.scipy.org/doc/numpy/reference/c-api.generalized-ufuncs.html). np.apply_along_axis accomplishes