Safe Haskell | None |
---|---|
Language | Haskell2010 |
Some auxilary functions
- data Pair a = Pair a a
- unique :: Ord a => [a] -> [a]
- count :: Ord b => [b] -> Map b Integer
- histogram :: Ord b => [b] -> Map b Integer
- deleteLookup :: Ord a => a -> Map a b -> (Maybe b, Map a b)
- unsafeDeleteLookup :: Ord a => a -> Map a b -> (b, Map a b)
- aut :: Partition -> Integer
- defaultSetPartition :: Partition -> SetPartition
- linearIndices :: Partition -> [[Int]]
- class IsSigned a where
- signOfNum :: (Ord a, Num a) => a -> Maybe Sign
- fromRat :: Rational -> Integer
- safeDiv :: Integer -> Integer -> Integer
- chooseN1 :: [a] -> [[a]]
- symPolyNum :: Num a => Int -> [a] -> a
Pairs
Pair a a |
Lists
Maps
Partitions
aut :: Partition -> Integer Source #
aut(mu)
is the number of symmetries of the partition mu:
aut(mu) = prod_r (e_r)!
where mu = (1^e1 2^e2 .. k^ek)
Set partitions
defaultSetPartition :: Partition -> SetPartition Source #
Makes set partition from a partition (simply filling up from left to right) with the shape giving back the input partition
linearIndices :: Partition -> [[Int]] Source #
Produce linear indices from a partition nu
(to encode the diagonal map Delta_nu
).
Signs
Numbers
Combinatorics
symPolyNum :: Num a => Int -> [a] -> a Source #