1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-11-19 06:30:29 +01:00

simplify symmetric_AutSymbol

This commit is contained in:
kalmar 2017-04-18 13:18:29 +02:00
parent 9ac3fa3dfb
commit 38da5b4e98

View File

@ -95,9 +95,7 @@ function flip_AutSymbol(j; pow::Int=1)
end
function symmetric_AutSymbol(perm::Vector{Int}; pow::Int=1)
perm = Permutation(perm)
ord = order(perm)
pow = pow % ord
perm = Permutations.Permutation(perm)
perm = perm^pow
p = array(perm)
if p == collect(1:length(p))