permutationMatrix s, permutationMatrix(n , c)
The following example converts the oneline notation of a transposition into a matrix representation.

The following example converts the cyclic notation of the same transposition into a matrix representation. Without n the function assumes n is the largest integer that appears in your array or list of arrays.


The following example converts the cyclic notation of a permutation of 4 into a matrix representation.


The object permutationMatrix is a method function.