mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-27 02:35:29 +01:00
update getperm
This commit is contained in:
parent
f6f2258629
commit
39d64b7e69
@ -74,11 +74,12 @@ function perm_autsymbol(p::perm; pow::Int=1)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function getperm(s::AutSymbol)
|
function getperm(s::AutSymbol)
|
||||||
if s.ex.args[1] == :σ
|
if s.ex.args[1] == :σ
|
||||||
return s.ex.args[2]
|
p = s.ex.args[2]
|
||||||
else
|
return PermutationGroup(length(p))(p)
|
||||||
throw(ArgumentError("$s is not a permutation automorphism!"))
|
else
|
||||||
end
|
throw(ArgumentError("$s is not a permutation automorphism!"))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function AutGroup(G::FPGroup; outer=false, special=false)
|
function AutGroup(G::FPGroup; outer=false, special=false)
|
||||||
|
Loading…
Reference in New Issue
Block a user