Exemple #1
0
 public static Permutation <T> Inverse(Permutation <T> p)
 {
     return(new Permutation <T>(p.Set, p.Select(cycle => Cycle <T> .Inverse(cycle))));
 }
Exemple #2
0
 public static Permutation <T> FromPermutation <U>(FiniteSet <T> set, Permutation <U> permutation, Func <U, T> bijection) where U : IEquatable <U>
 {
     return(new Permutation <T>(set, permutation.Select(cycle => new Cycle <T>(cycle.Select(u => bijection(u))))));
 }