Skip to content

Question: Swap rows/columns idiomatically in ndarray #1007

Answered by bluss
skailasa asked this question in Q&A
Discussion options

You must be logged in to vote

For example the rows_mut producer is an ndproducer and iterable, so it can give you array views of all the rows simultaneously.

There's a good solution in using the multi_slice_mut - you can cut out multiple slices however you want, and that didn't exist back then when the other question was asked.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by skailasa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1005 on May 17, 2021 11:39.