mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-11-19 06:30:29 +01:00
be more specific on the type of objectGroup in AutGroup
This commit is contained in:
parent
c8f0ee04da
commit
d834935d05
@ -33,7 +33,7 @@ end
|
||||
AutGroupElem = GWord{AutSymbol}
|
||||
|
||||
mutable struct AutGroup{N} <: AbstractFPGroup
|
||||
objectGroup::Group
|
||||
objectGroup::FreeGroup
|
||||
gens::Vector{AutSymbol}
|
||||
domain::NTuple{N, FreeGroupElem}
|
||||
end
|
||||
@ -139,8 +139,8 @@ domain(G::AutGroup) = deepcopy(G.domain)
|
||||
###############################################################################
|
||||
|
||||
function AutGroup(G::FreeGroup; special=false)
|
||||
n = length(G.gens)
|
||||
n == 0 && return AutGroup(G, AutSymbol[])
|
||||
n = length(gens(G))
|
||||
n == 0 && return AutGroup(G, AutSymbol[], NTuple{n, FreeGroupElem}())
|
||||
S = AutSymbol[]
|
||||
|
||||
indexing = [[i,j] for i in 1:n for j in 1:n if i≠j]
|
||||
|
Loading…
Reference in New Issue
Block a user