ndarray
ndarray copied to clipboard
Add multislice_axis! macro
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);
Hello! Is this issue still active? The multislice macro that is being compared was removed in #719.