Skip to content

Add multislice_axis! macro #593

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

Open
jturner314 opened this issue Mar 9, 2019 · 1 comment
Open

Add multislice_axis! macro #593

jturner314 opened this issue Mar 9, 2019 · 1 comment

Comments

@jturner314
Copy link
Member

The next release of ndarray will have a multislice! macro for easily taking multiple mutable, disjoint slices simultaneously. (#388) This is great, but there are cases where you want to slice only a single axis given that axis number (analogous to slice_axis versus slice) for an array with an arbitrary dimension type. It would be useful to provide a multislice_axis! macro that can be called like this:

let (a, b, c, d, e) = multislice_axis!(arr, Axis(2), 0..5, mut 6..;2, 1..6, mut 7..;2, 3);
@bokutotu
Copy link

bokutotu commented Jan 3, 2022

Hello! Is this issue still active? The multislice macro that is being compared was removed in #719.

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