Macaulay2 » Documentation
Packages » MatrixSchubert » Investigating ASM varieties » rotheDiagram
next | previous | forward | backward | up | index | toc

# rotheDiagram -- find the Rothe diagram of a partial alternating sign matrix

- Usage:
    `rotheDiagram w`
    `rotheDiagram A`
- Inputs:
  - w, a list, or A is a Matrix
- Outputs:
  - a list,

## Description

Given a permutation in 1-line notation or a partial alternating sign matrix returns the Rothe diagram.

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

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

    o1 : List

    i2 : rotheDiagram w

    o2 = {(1, 1), (2, 1), (2, 3), (2, 4), (3, 1), (3, 3)}

    o2 : List

    i3 : A = matrix{{0,1,0},{1,-1,0},{0,0,0}}

    o3 = | 0 1  0 |
         | 1 -1 0 |
         | 0 0  0 |

                  3       3
    o3 : Matrix ZZ  <-- ZZ

    i4 : rotheDiagram A

    o4 = {(1, 1), (2, 2), (2, 3), (3, 2), (3, 3)}

    o4 : List

## Ways to use rotheDiagram:

- `rotheDiagram(List)`
- `rotheDiagram(Matrix)`

## For the programmer

The object rotheDiagram is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/MatrixSchubert/MatrixSchubertConstructionsDOC.m2:698:0.