Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Type classes for some common properties shared by different objects
Synopsis
- 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
class CanBeEmpty a where Source #
Emptyness
Instances
CanBeEmpty Partition Source # | |
CanBeEmpty PlanePart Source # | |
CanBeEmpty (Tableau a) Source # | |
Partitions
class HasNumberOfParts a where Source #
Number of parts
numberOfParts :: a -> Int Source #
Instances
HasNumberOfParts Partition Source # | |
Defined in Math.Combinat.Partitions.Integer.Naive numberOfParts :: Partition -> Int Source # | |
HasNumberOfParts SetPartition Source # | |
Defined in Math.Combinat.Partitions.Set numberOfParts :: SetPartition -> Int Source # | |
HasNumberOfParts NonCrossing Source # | |
Defined in Math.Combinat.Partitions.NonCrossing numberOfParts :: NonCrossing -> Int Source # |
class HasHeight a where Source #
Instances
HasHeight Partition Source # | |
HasHeight LatticePath Source # | |
Defined in Math.Combinat.LatticePaths height :: LatticePath -> Int Source # |
class HasWeight a where Source #
Weight (of partitions, tableaux, etc)
Instances
HasWeight Partition Source # | |
HasWeight SkewPartition Source # | |
Defined in Math.Combinat.Partitions.Skew weight :: SkewPartition -> Int Source # | |
HasWeight PlanePart Source # | |
HasWeight (Tableau a) Source # | |
HasWeight (SkewTableau a) Source # | |
Defined in Math.Combinat.Tableaux.Skew weight :: SkewTableau a -> Int Source # |
class HasDuality a where Source #
Duality (of partitions, tableaux, etc)
Instances
HasDuality Partition Source # | |
HasDuality SkewPartition Source # | |
Defined in Math.Combinat.Partitions.Skew dual :: SkewPartition -> SkewPartition Source # | |
HasDuality (Tableau a) Source # | |
HasDuality (SkewTableau a) Source # | |
Defined in Math.Combinat.Tableaux.Skew dual :: SkewTableau a -> SkewTableau a Source # |
Tableau
class HasShape a s | a -> s where Source #
Shape (of tableaux, skew tableaux)
Instances
HasShape (Tableau a) Partition Source # | |
HasShape (SkewTableau a) SkewPartition Source # | |
Defined in Math.Combinat.Tableaux.Skew shape :: SkewTableau a -> SkewPartition Source # |
Trees
class HasNumberOfNodes t where Source #
Number of nodes (of trees)
numberOfNodes :: t -> Int Source #
Instances
HasNumberOfNodes (Tree a) Source # | |
Defined in Math.Combinat.Trees.Nary numberOfNodes :: Tree a -> Int Source # | |
HasNumberOfNodes (BinTree a) Source # | |
Defined in Math.Combinat.Trees.Binary numberOfNodes :: BinTree a -> Int Source # | |
HasNumberOfNodes (BinTree' a b) Source # | |
Defined in Math.Combinat.Trees.Binary numberOfNodes :: BinTree' a b -> Int Source # |
class HasNumberOfLeaves t where Source #
Number of leaves (of trees)
numberOfLeaves :: t -> Int Source #
Instances
HasNumberOfLeaves (Tree a) Source # | |
Defined in Math.Combinat.Trees.Nary numberOfLeaves :: Tree a -> Int Source # | |
HasNumberOfLeaves (BinTree a) Source # | |
Defined in Math.Combinat.Trees.Binary numberOfLeaves :: BinTree a -> Int Source # | |
HasNumberOfLeaves (Tree a) Source # | |
Defined in Math.Combinat.Groups.Thompson.F numberOfLeaves :: Tree a -> Int Source # | |
HasNumberOfLeaves (BinTree' a b) Source # | |
Defined in Math.Combinat.Trees.Binary numberOfLeaves :: BinTree' a b -> Int Source # |
Permutations
class HasNumberOfCycles p where Source #
Number of cycles (of partitions)
numberOfCycles :: p -> Int Source #
Instances
HasNumberOfCycles DisjointCycles Source # | |
Defined in Math.Combinat.Permutations numberOfCycles :: DisjointCycles -> Int Source # | |
HasNumberOfCycles Permutation Source # | |
Defined in Math.Combinat.Permutations numberOfCycles :: Permutation -> Int Source # |