From d3a9f8d3f6e840994c1a3df528cf746796d18044 Mon Sep 17 00:00:00 2001 From: kalmar Date: Mon, 15 May 2017 17:23:49 +0200 Subject: [PATCH] perm_autsymbol(::Vector{Int}) convenience function --- src/AutGroup.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/AutGroup.jl b/src/AutGroup.jl index de918b8..1d3bfeb 100644 --- a/src/AutGroup.jl +++ b/src/AutGroup.jl @@ -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]