Macaulay2 » Documentation
Packages » Tableaux :: shape
next | previous | forward | backward | up | index | toc

shape -- the shape of a Young tableau

Description

This returns the original shape used to construct the tableau.

i1 : T = youngTableau(new Partition from {4,3,1,0})

     ┌───┬───┬───┬───┐
o1 = │   │   │   │   │
     ├───┼───┼───┼───┘
     │   │   │   │    
     ├───┼───┴───┘    
     │   │            
     └───┘            

o1 : YoungTableau
i2 : shape T

o2 = Partition{4, 3, 1, 0}

o2 : Partition

It may be convenient to remove trailing $0$'s from the partitions by using truncate on the partition.

i3 : truncate shape T

o3 = Partition{4, 3, 1}

o3 : Partition

See also

Ways to use shape:

  • shape(YoungTableau)

For the programmer

The object shape is a method function.


The source of this document is in Tableaux/documentation.m2:335:0.