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

Math.Combinatorics.LatinSquares

Synopsis

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

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

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

Are the two latin squares orthogonal?

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