-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Multi-argument eachindex
#10906
Comments
Agreed on both points. The two-argument version was just implemented in #10858, but I agree we could probably use a multi-argument version. For the broadcasting idea, there's something like that in reducedim, but I think it only adds trailing 1s. You can use |
doesn't seem release-blocking |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
eachindex
is a great function, which provides a uniform & efficient way to traverse a array.However, in many cases, the computation require multiple arguments, e.g., addition.
A more greedy demand is to allow broadcasting eachindex when arrays have different sizes, but their shapes are compatible (in terms of broadcasting).
cc: @timholy
The text was updated successfully, but these errors were encountered: