1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 18:15:29 +01:00

fix type instability in domain

This commit is contained in:
kalmarek 2018-08-07 23:51:15 +02:00
parent 84d601817c
commit 60c04f0dbd

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
###############################################################################
#