numeric-prelude-0.3.0.1: An experimental alternative hierarchy of numeric type classes

PortabilityPermutation represented by an array of the images.
Stabilityprovisional
Maintainernumericprelude@henning-thielemann.de
Safe HaskellSafe-Infered

MathObj.Permutation.Table

Description

 

Synopsis

Documentation

type T i = Array i iSource

fromFunction :: Ix i => (i, i) -> (i -> i) -> T iSource

toFunction :: Ix i => T i -> i -> iSource

fromPermutation :: (Ix i, C p) => p i -> T iSource

fromCycles :: Ix i => (i, i) -> [[i]] -> T iSource

identity :: Ix i => (i, i) -> T iSource

cycle :: Ix i => [i] -> T i -> T iSource

inverse :: Ix i => T i -> T iSource

compose :: Ix i => T i -> T i -> T iSource

choose :: Set a -> Maybe (a, Set a)Source

Extremely naïve algorithm to generate a list of all elements in a group. Should be replaced by a Schreier-Sims system if this code is ever used for anything bigger than .. say .. groups of order 512 or so.

closure :: Ix i => [T i] -> [T i]Source

closureSlow :: Ix i => [T i] -> [T i]Source