Safe Haskell | None |
---|---|
Language | Haskell98 |
Young and Ferrers diagrams for integer partitions
- partitionConventionTransformation :: PartitionConvention -> Diagram b R2 -> Diagram b R2
- drawFerrersDiagram :: Renderable (Path R2) b => Partition -> Diagram b R2
- drawFerrersDiagram' :: Renderable (Path R2) b => PartitionConvention -> Colour Double -> Bool -> Partition -> Diagram b R2
- drawPartitionBoxes :: Renderable (Path R2) b => PartitionConvention -> Partition -> Diagram b R2
Documentation
partitionConventionTransformation :: PartitionConvention -> Diagram b R2 -> Diagram b R2 Source
drawFerrersDiagram :: Renderable (Path R2) b => Partition -> Diagram b R2 Source
Draws a Ferrers diagram with the default settings (English notation, no boxes)
:: Renderable (Path R2) b | |
=> PartitionConvention | orientation |
-> Colour Double | color |
-> Bool | whether to draw the boxes |
-> Partition | |
-> Diagram b R2 |
drawPartitionBoxes :: Renderable (Path R2) b => PartitionConvention -> Partition -> Diagram b R2 Source
Draws a partition as a grid of boxes (sometimes also called Young diagram)