Skip to content

Conversation

@charris
Copy link
Member

@charris charris commented Jan 9, 2026

Backport of #30601.

Defer cast to input type to the end of the computation by passing through the weak_q information.

This fixes gh-30586, but I am not sure it is great to backport. Although, compared to the other PR it should just align the nan-functions fully and otherwise revert anything that isn't just a precision fix.


If we don't want to backport this, I would be tempted to just revert the original PR for 2.5, TBH.

This still needs tests, although it passes all tests added in gh-29105.

seberg added 2 commits January 9, 2026 15:25
Defer cast to input type to the end of the computation by
passing through the `weak_q` information.

This fixes numpygh-30586, but I am not sure it is great to backport.
Although, compared to the other PR it should just align the nan-functions
fully and otherwise revert anything that isn't just a precision fix.
@charris charris added this to the 2.4.1 Release milestone Jan 9, 2026
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jan 9, 2026
@charris charris merged commit abe3d86 into numpy:maintenance/2.4.x Jan 9, 2026
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants