WLJS LogoWLJS Notebook

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}]

Please visit the official Wolfram Language Reference for more details.

On this page