1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 02:05:30 +01:00

perm_autsymbol(::Vector{Int}) convenience function

This commit is contained in:
kalmar 2017-05-15 17:23:49 +02:00
parent 9606a14743
commit d3a9f8d3f6

View File

@ -89,6 +89,11 @@ function perm_autsymbol(p::perm; pow::Int=1)
end
end
function perm_autsymbol(a::Vector{Int})
G = PermutationGroup(length(a))
return perm_autsymbol(G(a))
end
function getperm(s::AutSymbol)
if s.ex.args[1] == :σ
p = s.ex.args[2]