Skip to content

Commit

Permalink
Generalize TableauAppend
Browse files Browse the repository at this point in the history
modified:   YoungTableaux.m
	TableauAppend can now append lists of elements in a given row.
  • Loading branch information
Johannes E. M. Mosig committed Dec 23, 2017
1 parent cbddda0 commit bce06f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Multiplets/YoungTableaux.m
Expand Up @@ -508,7 +508,10 @@
Append[PadRight[fil, Total[spec], Empty], entry]
] /. replaceEmptyFillings
]
]
] /; !ListQ[entry]

(* automatically append lists of elements in one row *)
TableauAppend[tab_Tableau, row_, entry_List] := Fold[TableauAppend[#1, row, #2] &, tab, entry]

(* use this rule to simplify Tableau expressions by removing empty fillings (in the end) *)
replaceEmptyFillings = {
Expand Down

0 comments on commit bce06f7

Please sign in to comment.