It seems a simple problem, yet…
Applying a permutation to a vector, part 6
by Raymond Chen
From the article:
I left an exercise to write a function apply_reverse_permutation in which each element in the indices represents where the element should move to rather than where it comes from...
Add a Comment
Comments are closed.