The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CM::Permutation - Module for manipulating permutations

VERSION

version 0.08

DESCRIPTION

The module was written for carrying out permutation operations. The module is not written for generating permutations or counting them(to that end you can use Algorithm::Permute or Math::Counting)

At the moment the following are implemented(any feature that is currently listed as implemented has tests proving it):

  • permutation composition and conjugate permutations

  • inverse of a permutation

  • power of a permutation

  • '==' operator implemented (eq is the same)

  • order() method

  • even_odd(x) to classify even and odd permutations

  • conjugate(x,y) which test if there is a g so that x = g y g^-1

  • get_cycles() decomposes permutation into cycles and returns them

AUTHOR

Stefan Petrea, <stefan.petrea at gmail.com>

SEE ALSO

Algorithm::Permute or Math::Counting

http://en.wikipedia.org/wiki/Cycle_(mathematics)

CM::Group::Sym

CM::Group::Altern