I think the question is self explanatory, but to be clear:
I essentially want to permute the elements of a matrix in an efficient way, not simply reo