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.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.