Skip to content

MAINT: Adjust type promotion in linalg.norm #10368

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

Merged
merged 2 commits into from
Jan 12, 2018

Conversation

eric-wieser
Copy link
Member

Relates to #10364.

Unfortunately the failing case there still doesn't work when the result is a scalar, due to falling afoul of #10322. We fix this by just not making any promise about the scalar case.

That seems pretty reasonable to me, since numpy makes it very hard to keep float32 scalars around anyway.

@charris
Copy link
Member

charris commented Jan 11, 2018

I added the backport candidate label on account of the change to the release notes.

Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all OK to me

@mhvk
Copy link
Contributor

mhvk commented Jan 11, 2018

But the failures of course suggest there is a problem...

@eric-wieser
Copy link
Member Author

Failures are caused by #10374

@@ -24,7 +24,7 @@
add, multiply, sqrt, maximum, fastCopyAndTranspose, sum, isfinite, size,
finfo, errstate, geterrobj, longdouble, moveaxis, amin, amax, product, abs,
broadcast, atleast_2d, intp, asanyarray, object_, ones, matmul,
swapaxes, divide, count_nonzero
swapaxes, divide, count_nonzero, reciprocal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need reciprocal any more...

@mhvk
Copy link
Contributor

mhvk commented Jan 11, 2018

Apart from the nitpick, would seem ready to go in.

…r speed

Fixes numpygh-10364, partly by adjusting the promise in the release notes
@eric-wieser
Copy link
Member Author

Updated with the nit fix

@mhvk
Copy link
Contributor

mhvk commented Jan 12, 2018

OK, will merge now.

@mhvk mhvk merged commit 1adca6e into numpy:maintenance/1.14.x Jan 12, 2018
@eric-wieser
Copy link
Member Author

Needs a forward port, which can be done through the GitHub UI alone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants