-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
MAINT: simplify power fast path logic #27901
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
seberg
merged 28 commits into
numpy:main
from
MaanasArora:maint/simpler-power-fast-paths
Jan 7, 2025
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
6923108
MAINT: remove fast paths from array power
MaanasArora 8196fbb
MAINT: Add fast paths to power loops
MaanasArora 4090a1c
MAINT: Clean loops for integer power in umath
MaanasArora 91dd9dd
MAINT: Remove blocking regression test for power fast paths
MaanasArora c0e88c8
MAINT: Add helper function for power fast paths
MaanasArora c00489d
BUG: Change misspelled bitwise and to logical and
MaanasArora 1d9f355
BUG: Fix missing value on power helper return
MaanasArora 4b2920c
BUG: Fix exponent bitwise logic in power fast paths
MaanasArora dd6e773
MAINT: Add power fast paths to floating point umath
MaanasArora c95bff2
MAINT: Add fast power paths to array power when exponent is python ob…
MaanasArora 084416e
MAINT: Fix division by zero runtime warning in test regression
MaanasArora e23423c
MAINT: Adapt object regression test for linalg to power fast paths
MaanasArora 7cad24e
MAINT: Remove incorrect declarations in power fast paths
MaanasArora c028996
MAINT: Reduce calls to power fast path helper when scalar is ineligible
MaanasArora 3297309
MAINT: Fix missing sliding loop
MaanasArora 455407f
BUG: Fix syntax error
MaanasArora df6f54a
MAINT: Fix semantic misuse of -1 for non-error returns
MaanasArora d10bce5
MAINT: Improve error checking in power fast paths to remove PyErr_Clear
MaanasArora 21c12a6
MAINT: Improve type checking in power fast paths
MaanasArora c9929ff
MAINT: Efficient handling of ones arrays in scalar fast paths
MaanasArora ed449e7
MAINT: Simplify outer check for scalar power fast paths
MaanasArora ba24783
MAINT: Reduce code reuse in float power fast paths and add reciprocal
MaanasArora b5f8a2b
MAINT: Remove Python scalar checking for fast power paths
MaanasArora 023d55a
MAINT: Add benchmarks for power operators in float binary bench
MaanasArora efbd6b8
MAINT: Add scalar power fast paths
MaanasArora 31418e9
BUG: Add missing pointer cast
MaanasArora a5d0ef4
BUG: Allow scalar power fast paths only for non-integers
MaanasArora 2e0f6ca
MAINT: Restore outdated changes in regression test to master
MaanasArora File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In fact, here we also should maybe just call the normal multiply loop (with duplicated
op1
pointer).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.
Will do with the SQRT!