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
- numberOfParts :: a -> Int
- class HasWidth a where
- class HasHeight a where
- class HasWeight a where
- class HasDuality a where
- dual :: a -> a
- class HasShape a s | a -> s where
- shape :: a -> s
- class HasNumberOfNodes t where
- numberOfNodes :: t -> Int
- class HasNumberOfLeaves t where
- numberOfLeaves :: t -> Int
- class HasNumberOfCycles p where
- numberOfCycles :: p -> Int
Documentation
Partitions
Tableau
Trees
class HasNumberOfNodes t where Source
Number of nodes (of trees)
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)
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)
Methods
numberOfCycles :: p -> Int Source