Permutations are constructed from lists. To create a permutation, use the permutation method:
|
Permutations must be constructed from lists consisting of only the integers $1 \textemdash n$. If a list contains any other elements or does not consist of the entire range, then an error is thrown. The method matrix(Permutation) can be used to get the matrix representation of the permutation. In this representation, for a permutation $p$, if $p(i)=j$, then then the $(i,j)$th entry is $1$.
|
|
This is especially useful for considering the action of permutations on matrices, see Group actions.
The source of this document is in Permutations/Documentation/packageDocs.m2:63:0.