Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Math.Combinat.Classes
Description
Type classes for some common properties shared by different objects
- class CanBeEmpty a where
- class HasNumberOfParts a where
- class HasWidth a where
- class HasHeight a where
- class HasWeight a where
- class HasDuality a where
- class HasShape a s | a -> s where
- class HasNumberOfNodes t where
- class HasNumberOfLeaves t where
- class HasNumberOfCycles p where
Documentation
Partitions
class HasNumberOfParts a where Source #
Number of parts
Minimal complete definition
Methods
numberOfParts :: a -> Int Source #
class HasDuality a where Source #
Duality (of partitions, tableaux, etc)
Minimal complete definition
Instances
Tableau
class HasShape a s | a -> s where Source #
Shape (of tableaux, skew tableaux)
Minimal complete definition
Instances
Trees
class HasNumberOfNodes t where Source #
Number of nodes (of trees)
Minimal complete definition
Methods
numberOfNodes :: t -> Int Source #
Instances
HasNumberOfNodes (BinTree a) Source # | |
HasNumberOfNodes (BinTree' a b) Source # | |
class HasNumberOfLeaves t where Source #
Number of leaves (of trees)
Minimal complete definition
Methods
numberOfLeaves :: t -> Int Source #
Instances
HasNumberOfLeaves (BinTree a) Source # | |
HasNumberOfLeaves (Tree a) Source # | |
HasNumberOfLeaves (BinTree' a b) Source # | |
Permutations
class HasNumberOfCycles p where Source #
Number of cycles (of partitions)
Minimal complete definition
Methods
numberOfCycles :: p -> Int Source #