PermutationList

PermutationList[perm]
returns a permutation list representation of permutation perm.

PermutationList[perm, len]
returns a permutation list of length len.

DetailsDetails

  • The input permutation perm can be given as a permutation list or in disjoint cyclic form.
  • For cyclic input Cycles[{cyc1, cyc2, ...}] the cycles must be lists of positive integers representing the points of the domain in which the permutation perm acts. The cycles must have no common points.
  • PermutationList returns a permutation list that is a reordering of the consecutive integers . By default the length len is the largest integer present in the input perm.
  • For an input cycle the resulting permutation list has point at position and at position .
  • PermutationList also works with SparseArray objects.
New in 8 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »