curver.kernel.permutation module¶
A module for representing permutations in Sym(N).
-
class
curver.kernel.permutation.
Permutation
(perm)[source]¶ Bases:
object
This represents a permutation on 0, 1, …, N-1.
-
index
()[source]¶ Return the index of this permutation in the (sorted) list of all permutations on this many symbols.
-
is_even
()[source]¶ Return whether this permutation is the composition of an even number of transposiions.
-