mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-07-17 10:55:33 +02: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
|
end
|
||||||
|
|
||||||
function symmetric_AutSymbol(perm::Vector{Int}; pow::Int=1)
|
function symmetric_AutSymbol(perm::Vector{Int}; pow::Int=1)
|
||||||
perm = Permutation(perm)
|
perm = Permutations.Permutation(perm)
|
||||||
ord = order(perm)
|
|
||||||
pow = pow % ord
|
|
||||||
perm = perm^pow
|
perm = perm^pow
|
||||||
p = array(perm)
|
p = array(perm)
|
||||||
if p == collect(1:length(p))
|
if p == collect(1:length(p))
|
||||||
|
Loading…
Reference in New Issue
Block a user