8000 WIP: implement __rop__ logic for scalar operators by ewmoore · Pull Request #7459 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

WIP: implement __rop__ logic for scalar operators #7459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions doc/release/1.12.0-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ The following functions are changed: ``sum``, ``product``,
The previous identity was 1, it is now -1. See entry in `Improvements`_ for
more explanation.

Scalar-Scalar power result type changed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Raising an integer scalar to a negative integer power will always result in a
floating point scalar type. Previously when using mixed integer types an
integer type would be produced, while the pure type case produced a floating
point type.

FutureWarning to changed behavior
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -175,6 +182,11 @@ The standard ``np.load``, ``np.save``, ``np.loadtxt``, ``np.savez``, and similar
functions can now take ``pathlib.Path`` objects as an argument instead of a
filename or open file object.

Mixed type scalar-scalar operators should be faster
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rather than defering to the ufunc, mixed type scalar-scalar operators are
handled in the scalar operator resulting in a speedup.


Changes
=======
Expand Down
Loading
0