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 outer indexing (NEP 21) #29

Open
asmeurer opened this issue May 13, 2020 · 2 comments
Open

Support outer indexing (NEP 21) #29

asmeurer opened this issue May 13, 2020 · 2 comments

Comments

@asmeurer
Copy link
Member

https://numpy.org/neps/nep-0021-advanced-indexing.html

@asmeurer asmeurer added this to the Low Priority milestone May 13, 2020
@scopatz scopatz removed this from the Low Priority milestone Jun 10, 2020
@asmeurer asmeurer changed the title Support NEP 21 advanced indexing Support outer indexing (NEP 21) May 1, 2024
@asmeurer
Copy link
Member Author

asmeurer commented May 1, 2024

I think an actionable thing to have here would be to have a function oindex that works like ndindex() except it treats the input as an outer index, and converts it into an equivalent vectorized (i.e., normal) index. This would be an extension of the numpy ix_ function, except unlike ix_, it would support arrays with dimensions other than 1, and it would support mixing non-array indices (as long as the array indices aren't separated by non-array indices. That I still want to leave unsupported/unimplemented).

@asmeurer
Copy link
Member Author

asmeurer commented May 1, 2024

The NEP has some links to implementations which could be useful. What actually would be the most useful would be an implementation that we could test against, but I think we'll just have to write a more direct behavioral test. I expect that to be the hardest part of implementing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants