Skip to content
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 powm1 overflow handling #17872

Merged
merged 1 commit into from Jan 29, 2023
Merged

BUG: fix powm1 overflow handling #17872

merged 1 commit into from Jan 29, 2023

Conversation

mborland
Copy link
Contributor

Reference issue

No open issue. Supersedes #17855.

What does this implement/fix?

Implements complete error handling as defined in cmath https://en.cppreference.com/w/cpp/numeric/math/pow

Additional information

@WarrenWeckesser the C++ version of your test set with this change applied for validation can be found on this pull: boostorg/math#931. Sorry for the previous braindead PR.

@j-bowhay j-bowhay added defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.special C/C++ Items related to the internal C/C++ code base labels Jan 28, 2023
@tupui tupui changed the title Fix powm1 overflow handling BUG: fix powm1 overflow handling Jan 28, 2023
@mckib2
Copy link
Contributor

mckib2 commented Jan 29, 2023

Thanks @mborland. Error handling looks good and CI is green so I'll go ahead and merge

@mckib2 mckib2 merged commit e6c27e5 into scipy:main Jan 29, 2023
@WarrenWeckesser WarrenWeckesser added this to the 1.11.0 milestone Feb 1, 2023
@mborland mborland deleted the powm1 branch February 11, 2023 21:46
@tylerjereddy tylerjereddy added the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label Feb 18, 2023
@tylerjereddy
Copy link
Contributor

This is labeled as a bug, so I've tentatively added a backport label for 1.10.1. Just remove the label if you disagree, or let me know when I open the next backport PR.

@tylerjereddy tylerjereddy modified the milestones: 1.11.0, 1.10.1 Feb 18, 2023
@tylerjereddy tylerjereddy removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C/C++ Items related to the internal C/C++ code base defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.special
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants