simplify symmetric_AutSymbol

This commit is contained in:
kalmar 2017-04-18 13:18:29 +02:00
parent 9ac3fa3dfb
commit 38da5b4e98
1 changed files with 1 additions and 3 deletions

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))