[Numpy-discussion] PR to add an initializer kwarg to ufunc.reduce (and similar functions)

Hameer Abbasi einstein.edison at gmail.com
Fri Mar 16 13:10:06 EDT 2018


 Hello, everyone. I’ve submitted a PR to add a initializer kwarg to
ufunc.reduce. This is useful in a few cases, e.g., it allows one to supply
a “default” value for identity-less ufunc reductions, and specify an
initial value for reductions such as sum (other than zero.)

Please feel free to review or leave feedback, (although I think Eric and
Marten have picked it apart pretty well).

https://github.com/numpy/numpy/pull/10635

Thanks,

Hameer
Sent from Astro <https://www.helloastro.com> for Mac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180316/f4b653db/attachment.html>


More information about the NumPy-Discussion mailing list