fix type instability in domain

This commit is contained in:
kalmarek 2018-08-07 23:51:15 +02:00
parent 84d601817c
commit 60c04f0dbd
1 changed files with 5 additions and 1 deletions

View File

@ -137,7 +137,11 @@ function perm_autsymbol(a::Vector{T}) where T<:Integer
return perm_autsymbol(perm(Vector{Int8}(a), false))
end
domain(G::AutGroup)= NTuple{length(G.objectGroup.gens), FreeGroupElem}(gens(G.objectGroup))
function domain(G::AutGroup{N}) where N
F = G.objectGroup
gg = gens(F)
return ntuple(i->gg[i], Val{N})
end
###############################################################################
#