[Numpy-discussion] Writing new ufuncs
Alan McIntyre
alan.mcintyre at gmail.com
Sun May 11 14:12:22 EDT 2008
On Sun, May 11, 2008 at 2:04 PM, Anne Archibald
<peridot.faceted at gmail.com> wrote:
> Also, is there a way to take a python function and automatically make
> a ufunc out of it? (No, vectorize doesn't implement reduce(),
> accumulate(), reduceat(), or outer().)
I've not used it, but have a look at numpy.frompyfunc; its docstring
suggests it turns arbitrary Python functions into ufuncs.
More information about the NumPy-Discussion
mailing list