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

applyEntries -- apply a function to all entries in the tableau

Description

i1 : T = skewTableau(new Partition from {6,3,2}, new Partition from {2}, toList(0..8))

             ┌───┬───┬───┬───┐
o1 =         │ 0 │ 1 │ 2 │ 3 │
     ┌───┬───┼───┼───┴───┴───┘
     │ 4 │ 5 │ 6 │            
     ├───┼───┼───┘            
     │ 7 │ 8 │                
     └───┴───┘                

o1 : SkewTableau
i2 : applyEntries(T, theBox -> theBox^2)

               ┌────┬────┬────┬────┐
o2 =           │ 0  │ 1  │ 4  │ 9  │
     ┌────┬────┼────┼────┴────┴────┘
     │ 16 │ 25 │ 36 │               
     ├────┼────┼────┘               
     │ 49 │ 64 │                    
     └────┴────┘                    

o2 : SkewTableau

See also

Ways to use applyEntries:

  • applyEntries(SkewTableau,Function)

For the programmer

The object applyEntries is a method function.


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