add external constructors for SAut i SL
This commit is contained in:
parent
8ee8eebd9e
commit
b45adc2e00
@ -1,9 +1,10 @@
|
|||||||
struct SpecialAutomorphismGroup{N} <: SymmetrizedGroup
|
struct SpecialAutomorphismGroup{N} <: SymmetrizedGroup
|
||||||
group::AutGroup
|
group::AutGroup
|
||||||
|
end
|
||||||
|
|
||||||
function SpecialAutomorphismGroup(args::Dict)
|
function SpecialAutomorphismGroup(args::Dict)
|
||||||
return new{args["SAut"]}(AutGroup(FreeGroup(N), special=true))
|
N = args["SAut"]
|
||||||
end
|
return SpecialAutomorphismGroup{N}(AutGroup(FreeGroup(N), special=true))
|
||||||
end
|
end
|
||||||
|
|
||||||
name(G::SpecialAutomorphismGroup{N}) where N = "SAutF$(N)"
|
name(G::SpecialAutomorphismGroup{N}) where N = "SAutF$(N)"
|
||||||
|
@ -2,20 +2,20 @@ struct SpecialLinearGroup{N} <: SymmetrizedGroup
|
|||||||
group::AbstractAlgebra.Group
|
group::AbstractAlgebra.Group
|
||||||
p::Int
|
p::Int
|
||||||
X::Bool
|
X::Bool
|
||||||
|
end
|
||||||
|
|
||||||
function SpecialLinearGroup(args::Dict)
|
function SpecialLinearGroup(args::Dict)
|
||||||
N = args["SL"]
|
N = args["SL"]
|
||||||
p = args["p"]
|
p = args["p"]
|
||||||
X = args["X"]
|
X = args["X"]
|
||||||
|
|
||||||
if p == 0
|
if p == 0
|
||||||
G = MatrixSpace(Nemo.ZZ, N, N)
|
G = MatrixSpace(Nemo.ZZ, N, N)
|
||||||
else
|
else
|
||||||
R = Nemo.NmodRing(UInt(p))
|
R = Nemo.NmodRing(UInt(p))
|
||||||
G = MatrixSpace(R, N, N)
|
G = MatrixSpace(R, N, N)
|
||||||
end
|
|
||||||
return new{N}(G, p, X)
|
|
||||||
end
|
end
|
||||||
|
return SpecialLinearGroup{N}(G, p, X)
|
||||||
end
|
end
|
||||||
|
|
||||||
function name(G::SpecialLinearGroup{N}) where N
|
function name(G::SpecialLinearGroup{N}) where N
|
||||||
|
Loading…
Reference in New Issue
Block a user