[Numpy-discussion] Allowing broadcasting of code dimensions in generalized ufuncs

Marten van Kerkwijk m.h.vankerkwijk at gmail.com
Thu May 31 12:39:18 EDT 2018


p.p.s. Your multiple dispatch signature for broadcasted dimensions is
actually not quite right: should be
(n|1),(n|1)->() ===>

(n),(n)->() | (n),(1)->() | (1),(n)->() | (n),() -> () | (),(n)->()

This is becoming quite verbose... (and perhaps become somewhat slow).
Though arguably one could always allow missing dimensions to be 1 for this
case, so that one could drop the last two.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180531/36a4dd43/attachment.html>


More information about the NumPy-Discussion mailing list