1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-04 18:11:26 +01:00

convenience (S)Aut(G) and (G::WreathProduct)(n,p) constructors

This commit is contained in:
kalmarek 2018-07-30 15:01:20 +02:00
parent 0a20c5bb73
commit e9ae22cfe9
2 changed files with 6 additions and 1 deletions

View File

@ -45,7 +45,7 @@ mutable struct Automorphism{N} <: GWord{AutSymbol}
end
export Automorphism, AutGroup
export Automorphism, AutGroup, Aut, SAut
###############################################################################
#
@ -170,6 +170,9 @@ function AutGroup(G::FreeGroup; special=false)
return AutGroup{Int64(n)}(G, S)
end
Aut(G::Group) = AutGroup(G)
SAut(G::Group) = AutGroup(G, special=true)
###############################################################################
#
# Types call overloads

View File

@ -113,6 +113,8 @@ doc"""
"""
(G::WreathProduct)(n::DirectProductGroupElem) = G(n, G.P())
(G::WreathProduct)(n,p) = G(G.N(n), G.P(p))
###############################################################################
#
# Basic manipulation