Skip to content

Add multislice_axis! macro #593

Open
@jturner314

Description

@jturner314

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);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions