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

Support logical indexing #111

Merged
merged 1 commit into from
Aug 22, 2017
Merged

Conversation

iamed2
Copy link
Collaborator

@iamed2 iamed2 commented Aug 15, 2017

Previously, logical indexing was only supported on a per-dimension basis. Julia array indexing also allows logical linear indexing, as well as logical indexing with the same dimensionality as the data (treated as linear). AxisArrays provided linear indexing for integers, but not for logicals. Now it supports all the logical indexing that Base supports.

One thing I noticed while making this PR is that linear indexing always produces one axis named :col, whereas the first default index name is actually :row. But I think if we want to change that, that's another PR.

Closes #110

@ajkeller34 ajkeller34 merged commit 6fdaefb into JuliaArrays:master Aug 22, 2017
@ajkeller34
Copy link
Collaborator

Works great, thanks! Maybe open an issue regarding :col and :row, just so that observation doesn't get lost here?

@iamed2
Copy link
Collaborator Author

iamed2 commented Aug 22, 2017

Sure: #114

@iamed2 iamed2 deleted the logical-indexing branch August 22, 2017 17:50
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.

None yet

2 participants