Clean way to shuffle rows/columns of 2D array? #870
Unanswered
matzhaugen
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This example should really go somewhere better and bigger, but I guess it applies. Sorting along an axis and shuffling is a similar problem - if you use a permutation like in the example https://github.com/rust-ndarray/ndarray/blob/d2375956a96347e5d39aaf0328cbde121170324b/examples/sort-axis.rs and for sampling, look in ndarray-rand |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a clean way to shuffle or sample rows/columns of an Array with/without replacement?
Beta Was this translation helpful? Give feedback.
All reactions