Skip to content

Comments

MAINT: Adjust type promotion in linalg.norm#10368

Merged
mhvk merged 2 commits intonumpy:maintenance/1.14.xfrom
eric-wieser:fix-10364
Jan 12, 2018
Merged

MAINT: Adjust type promotion in linalg.norm#10368
mhvk merged 2 commits intonumpy:maintenance/1.14.xfrom
eric-wieser:fix-10364

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

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