Skip to content

add non-advanced boolean indexing support #169

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
merged 2 commits into from
Dec 23, 2018
Merged

Conversation

mattjj
Copy link
Collaborator

@mattjj mattjj commented Dec 23, 2018

also don't sub-sample indexing tests (run them all)
fixes #166

This PR adds basic boolean indexing support but does not add advanced indexing support with booleans. Let's wait for advanced indexing with bools (and bool/int mixtures) to be requested before we implement it, since advanced indexing is tricky and that use case seems rare. (I'd rather not page it back into my brain!) There's also an easy workaround for experts, which is just to use onp.where to create int indices.

also don't sub-sample indexing tests (run them all)
fixes #166
@mattjj
Copy link
Collaborator Author

mattjj commented Dec 23, 2018

I ran the internal tests, and they pass!

@mattjj mattjj mentioned this pull request Dec 23, 2018
@lukasheinrich
Copy link

Thanks @mattjj -- much appreciated.

@mattjj mattjj merged commit 041ef32 into master Dec 23, 2018
@mattjj mattjj deleted the boolean-indexing-support branch December 23, 2018 20:29
JehandadKhan referenced this pull request in ROCm/jax Oct 9, 2024
add non-advanced boolean indexing support

GitOrigin-RevId: 041ef32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

boolean indexing support
3 participants