Macaulay2 » Documentation
Packages » MatrixSchubert » Functions for investigating permutations » toOneLineNotation
next | previous | forward | backward | up | index | toc

toOneLineNotation -- rewrites a transposition or permutation matrix in 1-line notation

Description

Converts a permutation matrix or list of transpositions $(a,b)$ to 1-line notation. maxIdx is the $n$ for which to regard perm as an element of $S_n$, the symmetric group on $n$ letters.

i1 : perm = {2,4}

o1 = {2, 4}

o1 : List
i2 : maxIdx = 5

o2 = 5
i3 : toOneLineNotation(perm, maxIdx)

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

o3 : List
i4 : toOneLineNotation(matrix{{0,1,0},{1,0,0},{0,0,1}})

o4 = {2, 1, 3}

o4 : List

Ways to use toOneLineNotation:

  • toOneLineNotation(List,ZZ)
  • toOneLineNotation(Matrix)

For the programmer

The object toOneLineNotation is a method function.


The source of this document is in MatrixSchubert/permutationMethodsDOC.m2:203:0.