[Numpy-discussion] Allowing broadcasting of code dimensions in generalized ufuncs
Stephan Hoyer
shoyer at gmail.com
Thu May 31 14:00:06 EDT 2018
On Wed, May 30, 2018 at 5:01 PM Matthew Harrigan <harrigan.matthew at gmail.com>
wrote:
> "short-cut to automatically return False if m != n", that seems like a
> silent bug
>
I guess it depends on the use-cases. This is how np.array_equal() works:
https://docs.scipy.org/doc/numpy/reference/generated/numpy.array_equal.html
We could even imagine incorporating this hypothetical "equality along some
axes with broadcasting" functionality into axis/axes arguments for
array_equal() if we choose this behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180531/fb33cc39/attachment.html>
More information about the NumPy-Discussion
mailing list