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

Fix SearchSorted for SparseArray when searching from Right #770

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

robert3005
Copy link
Member

No description provided.

Comment on lines +59 to +63
if i == self.metadata().indices_len {
i - 1
} else {
i
},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will have a pr to abstract this behaviour

@robert3005
Copy link
Member Author

Had to refer to numpy docs for semantics https://numpy.org/doc/stable/reference/generated/numpy.searchsorted.html. When searching from Right the found case will be one over the true index

@robert3005 robert3005 enabled auto-merge (squash) September 10, 2024 13:09
@robert3005 robert3005 merged commit a82eb07 into develop Sep 10, 2024
3 checks passed
@robert3005 robert3005 deleted the rk/fuzzfailures branch September 10, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants