ENH: allow python scalars in the 2nd argument of searchsorted#9512
Merged
ENH: allow python scalars in the 2nd argument of searchsorted#9512
Conversation
The upcoming Array API revision 2025.12 will allow the second argument of searchsorted to be a python scalar, cf data-apis/array-api#982
ee3f5a6 to
1241dad
Compare
seberg
reviewed
Dec 8, 2025
seberg
reviewed
Dec 8, 2025
5c46b61 to
0dfd2ee
Compare
0dfd2ee to
6867e2d
Compare
Member
|
/test mini |
Contributor
Author
FWIW I thought about it. My impression is it will complicate the kernel without giving tangible speed-ups. Happy to implement it if there are strong reasons to though. |
Member
|
Thanks @ev-br, seems safe to me, so let me put it in. If we someone wants a follow-up, I am happy to do that. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The upcoming Array API revision 2025.12 will allow the second argument of searchsorted to be a python scalar, cf
data-apis/array-api#982, so here's a matching proposal for CuPy.