[Numpy-discussion] Exact semantics of ufunc.reduce

Hameer Abbasi einstein.edison at gmail.com
Fri Oct 12 11:34:32 EDT 2018


I’m trying to investigate the exact way ufunc.reduce works when given a custom dtype. Does it cast before or after the operation, or somewhere in between? How does this differ from ufunc.reduceat, for example?

We ran into this issue in pydata/sparse#191 (https://github.com/pydata/sparse/issues/191) when trying to match the two where the only thing differing is the number of zeros for sum, which shouldn’t change the result.

Best Regards,
Hameer Abbasi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20181012/211a20c7/attachment.html>

More information about the NumPy-Discussion mailing list