diff options
author | mattharrigan <harrigan.matthew@gmail.com> | 2020-01-16 19:36:14 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-01-16 18:36:14 -0600 |
commit | bf6859c4248d3595493d2d809bafe1bc200ad6fa (patch) | |
tree | 8e7954d80c1695003b32811a10070e4e3776ac1d /doc/release | |
parent | 5e57e87490886711c5040f7143c998afb4ca7e3c (diff) | |
download | numpy-bf6859c4248d3595493d2d809bafe1bc200ad6fa.tar.gz |
ENH: add identity kwarg to frompyfunc (#8255)
* ENH: add identity kwarg to frompyfunc
* Update umathmodule.c
* Add test, docs, and release note for identity
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/upcoming_changes/8255.new_feature.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/8255.new_feature.rst b/doc/release/upcoming_changes/8255.new_feature.rst new file mode 100644 index 000000000..c0bc21b3e --- /dev/null +++ b/doc/release/upcoming_changes/8255.new_feature.rst @@ -0,0 +1,5 @@ +`numpy.frompyfunc` now accepts an identity argument +--------------------------------------------------- +This allows the :attr:`numpy.ufunc.identity` attribute to be set on the +resulting ufunc, meaning it can be used for empty and multi-dimensional +calls to :meth:`numpy.ufunc.reduce`. |