mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2025-01-21 00:05:26 +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}
|
AutGroupElem = GWord{AutSymbol}
|
||||||
|
|
||||||
mutable struct AutGroup{N} <: AbstractFPGroup
|
mutable struct AutGroup{N} <: AbstractFPGroup
|
||||||
objectGroup::Group
|
objectGroup::FreeGroup
|
||||||
gens::Vector{AutSymbol}
|
gens::Vector{AutSymbol}
|
||||||
domain::NTuple{N, FreeGroupElem}
|
domain::NTuple{N, FreeGroupElem}
|
||||||
end
|
end
|
||||||
@ -139,8 +139,8 @@ domain(G::AutGroup) = deepcopy(G.domain)
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
function AutGroup(G::FreeGroup; special=false)
|
function AutGroup(G::FreeGroup; special=false)
|
||||||
n = length(G.gens)
|
n = length(gens(G))
|
||||||
n == 0 && return AutGroup(G, AutSymbol[])
|
n == 0 && return AutGroup(G, AutSymbol[], NTuple{n, FreeGroupElem}())
|
||||||
S = AutSymbol[]
|
S = AutSymbol[]
|
||||||
|
|
||||||
indexing = [[i,j] for i in 1:n for j in 1:n if i≠j]
|
indexing = [[i,j] for i in 1:n for j in 1:n if i≠j]
|
||||||
|
Loading…
Reference in New Issue
Block a user