[Numpy-discussion] Vector stacks

Stephan Hoyer shoyer at gmail.com
Sun Jul 2 21:28:38 EDT 2017


I would also prefer separate functions. These are much easier to understand
that custom operator overloads.

Side note: implementing this class with __array_ufunc__ for ndarray @ cvec
actually isn't possible to do currently, until we fix this bug:
https://github.com/numpy/numpy/issues/9028

On Sat, Jul 1, 2017 at 5:31 PM, Juan Nunez-Iglesias <jni.soma at gmail.com>
wrote:

> I’m with Nathaniel on this one. Subclasses make code harder to read and
> reason about because you now have to be sure of the exact type of things
> that users are passing you — which are array-like but subtly different.
>
> On 2 Jul 2017, 9:46 AM +1000, Marten van Kerkwijk <
> m.h.vankerkwijk at gmail.com>, wrote:
>
> I'm not sure there is *that* much against a class that basically just
> passes through views of itself inside `__matmul__` and `__rmatmul__`
> or calls new gufuncs, but I think the lower hurdle is to first get
> those gufuncs implemented.
> -- Marten
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20170702/4d445f7d/attachment-0001.html>


More information about the NumPy-Discussion mailing list