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

- Usage:
    `toOneLineNotation(perm, maxIdx)`
    `toOneLineNotation(A)`
- Inputs:
  - perm, a list,
  - maxIdx, an integer,
  - A, a matrix,
- Outputs:
  - a list,

## 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 /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/MatrixSchubert/permutationMethodsDOC.m2:203:0.