-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: Fix norm type promotion #17709
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
BUG: Fix norm type promotion #17709
Conversation
Without the bugfix, the new tests fail:
|
Windows is failing. |
Windows is failing at |
|
bef7aa0
to
4f0c803
Compare
It seems the fixed tests |
By the looks of it |
32c8ad8
to
4f0c803
Compare
That's true. |
1a4d0ed
to
c51d2c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this probably needs a compatibility release note, but otherwise looks good to me
This part of the release note of 1.14.0 is for the issue this PR fixes. |
72c9bbf
to
2e23e50
Compare
We discussed this today at the meeting and I think the general consensus is that this can probably go in. It may be good to have a quick look over the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took the liberty of updating the release note, but everything else LGTM and CI is green (minus circleCI, for unrelated reasons). Thanks @toslunar !
Thank you for the reviews and improving the release note! |
Previously, numpy.linalg.norm would return values with the same floating-point type as input arrays for most values of the ``ord`` parameter, but not all. This PR fixes this so that the output dtype matches the input for all (valid) values of ``ord``. Co-authored-by: Kenichi Maehashi <webmaster@kenichimaehashi.com> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Reopen #10667: