Permute
Move the item at position of list to position , for a permutation perm given as Cycles or a one-line word. Given a PermutationGroup instead, returns list permuted by every element of the group.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Permute!Permute(list, perm)list with position moved to Combinatorica
If[ListQ[perm] && PermutationQ[perm] && Length[list] == Length[perm], Permute[list, InversePermutation[perm]], Missing["NotCombinatorica"]]Permute(list, group)one permuted copy of list per element of groupCombinatorica
If[ListQ[group] && PermutationQ[group] && Length[list] == Length[group], Permute[list, InversePermutation[group]], Missing["NotCombinatorica"]]Typed signatures
| Type | Package | Applies |
|---|---|---|
(list<any>, expression<Cycles> | expression<PermutationGroup> | list<integer>) -> list<any> | list<list<any>> | groupalgebra | always |
Details
Permuteand PermutationCycles/InversePermutation all read the same way: a one-line word{v1, ..., vn}means- A cycle or one-line word longer than
listleaves the call unevaluated — there is nowhere for the extra positions to go - The
PermutationGroupform orders its output the way GroupElements orders that group
Examples
About
| Examples | 8 |
|---|---|
| Checked against | Wolfram Language 5 agree1 differCombinatorica 2 agree |
| Crosswalk | Wolfram LanguageCombinatorica |
Implementation
mapped
combinatoricapackages/oracle/src/mappings.tsCombinatorica's Permute applies the inverse of the permutation ours applies. Covered for a one-line permutation of the same length, not Cycles or a padded word.
See also: Cycles, PermutationCycles, PermutationGroup, GroupElements