[Numpy-discussion] Future of ufuncs

Charles R Harris charlesr.harris at gmail.com
Mon May 29 16:51:02 EDT 2017

On Mon, May 29, 2017 at 12:32 PM, Marten van Kerkwijk <
m.h.vankerkwijk at gmail.com> wrote:

> Hi Chuck,
> Like Sebastian, I wonder a little about what level you are talking
> about. Presumably, it is the actual implementation of the ufunc? I.e.,
> this is not about the upper logic that decides which `__array_ufunc__`
> to call, etc.
> If so, I agree with you that it would seem to make most sense to move
> the implementation to `multiarray`; the current structure certainly is
> a major hurdle to understanding how things work!
> Indeed, I guess in terms of my earlier suggestion to make much of a
> ufunc happen in `ndarray.__array_ufunc__`, one could seem the type
> resolution and iteration happening there. If one were to expose the
> inner loops, anyone working with buffers could then use the ufuncs by
> defining their own __array_ufunc__.

The idea of separating ufuncs from ndarray was put forward many years ago,
maybe five or six. What I seek here is a record that we have given up on
that ambition, so do not need to take it into consideration in the future.
In particular, we can feel free to couple ufuncs even more tightly with

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20170529/6965406e/attachment.html>

More information about the NumPy-Discussion mailing list