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:
parent
9ac3fa3dfb
commit
38da5b4e98
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user