{-# LANGUAGE NoImplicitPrelude #-}{- |
Copyright : (c) Henning Thielemann 2006
Maintainer : numericprelude@henning-thielemann.de
Stability : provisional
Portability :
Routines and abstractions for permutations of Integers.
***
Seems to be a candidate for Algebra directory.
Algebra.PermutationGroup ?
-}moduleMathObj.PermutationwhereimportData.Array(Ix)-- import NumericPrelude (Integer)importPreludeBase{- |
There are quite a few way we could represent elements of permutation
groups: the images in a row, a list of the cycles, et.c. All of these
differ highly in how complex various operations end up being.
-}classCpwheredomain::(Ixi)=>pi->(i,i)apply::(Ixi)=>pi->i->iinverse::(Ixi)=>pi->pi