HaskellForMaths-0.4.5: Combinatorics, group theory, commutative algebra, non-commutative algebra

Safe HaskellSafe-Infered

Math.Combinatorics.LatinSquares

Synopsis

Documentation

findLatinSqs :: Eq a => [a] -> [[[a]]]Source

isLatinSq :: Ord a => [[a]] -> BoolSource

isOneOfEach :: Ord a => [a] -> BoolSource

incidenceGraphLS :: Ord a => [[a]] -> Graph (Int, Int, a)Source

incidenceGraphLS' :: Eq a => [[a]] -> Graph (Int, Int)Source

isOrthogonal :: (Ord a, Ord b) => [[a]] -> [[b]] -> BoolSource

Are the two latin squares orthogonal?

findMOLS :: (Eq a, Num a, Ord b) => a -> [[[b]]] -> [[[[b]]]]Source

isMOLS :: Ord a => [[[a]]] -> BoolSource

Are the latin squares mutually orthogonal (ie each pair is orthogonal)?

fromProjectivePlane :: (Ord k, Num k) => Design [k] -> [[[Int]]]Source

MOLS from a projective plane

isOA :: Ord b => (Int, Int) -> [[b]] -> BoolSource

fromLS :: [[Int]] -> [[Int]]Source

fromMOLS :: [[[Int]]] -> [[Int]]Source

graphOA :: Ord b => [[b]] -> Graph [b]Source

srgParamsOA :: Num t => (t, t) -> Maybe (t, t, t, t)Source