matrix_shuffle/3

"matrix_shuffle(XF+ Matrix,+ NewOrder,- Shuffle" )

Shuffle the dimensions of matrix Matrix according to NewOrder. The list NewOrder must have all the dimensions of Matrix, starting from 0.