Macaulay2 » Documentation
Packages » MatrixSchubert :: permLength
next | previous | forward | backward | up | index | toc

permLength -- to find the length of a permutation in 1-line notation.

Synopsis

Description

Given a permutation in 1-line notation returns the Coxeter length of the permutation.

i1 : w = {2,5,4,1,3}

o1 = {2, 5, 4, 1, 3}

o1 : List
i2 : permLength w

o2 = 6

Ways to use permLength :

For the programmer

The object permLength is a method function.