Macaulay2 » Documentation
Packages » Permutations :: trim
next | previous | forward | backward | up | index | toc

trim -- rewrites a permutation in its smallest representation

Synopsis

Description

trim rewrites a permutation $p$ as a permutation in $S_n$, where $n$ is the smallest integer such that $p$ is in $\mathfrak{S}_n$. In other words, it returns a permutation where any extraneous fixed points are removed.

i1 : p = permutation {3,1,2,5,4,6,7}

o1 = Permutation{3, 1, 2, 5, 4, 6, 7}

o1 : Permutation
i2 : trim p

o2 = Permutation{3, 1, 2, 5, 4}

o2 : Permutation

See also

Ways to use trim:

For the programmer

The object trim is a method function with options.