[Numpy-discussion] Future of ufuncs
Marten van Kerkwijk
m.h.vankerkwijk at gmail.com
Mon May 29 14:32:17 EDT 2017
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__.
All the best,
More information about the NumPy-Discussion