PermutationMatrix
PermutationMatrix[permv] represents the permutation matrix given by permutation vector permv as a structured array.
PermutationMatrix[pmat]converts a permutation matrix pmat to a structured array.
Examples
PermutationMatrix[{3, 1, 2}]Something isn't working? Report an issue.
Please visit the official Wolfram Language Reference for more details.