[Numpy-discussion] matmul as a ufunc

2018-05-21 Thread Matti Picus
I have made progress with resolving the issue that matmul, the operation which implements `a @ b`, is not a ufunc [2]. Discussion on the issue, which prevents the __array_ufunc__ mechanism for overriding matmul on subclasses of ndarray, yeilded two approaches: - create a wrapper that can convi

Re: [Numpy-discussion] Turn numpy.ones_like into a ufunc

2018-05-21 Thread Matthew Rocklin
I've also posted a second issue on doing this at the module level (beyond just ones_like) here: https://github.com/numpy/numpy/issues/11129 On Sat, May 19, 2018 at 9:12 PM, Marten van Kerkwijk < m.h.vankerkw...@gmail.com> wrote: > Just for completeness: this is *not* an issue for ndarray subclass