1
0
mirror of https://github.com/kalmarek/SmallHyperbolic synced 2024-07-27 13:05:31 +02:00

add type to TriangleGrp

This commit is contained in:
Marek Kaluba 2022-01-18 02:17:19 +01:00
parent 9319fb2186
commit adda6845b5
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -1,4 +1,5 @@
struct TriangleGrp
type::NTuple{3,Int}
generators::Vector{String}
relations::Vector{String}
order1::Int
@ -23,7 +24,7 @@ grp_name(nt::NamedTuple) = _name(nt)
latex_name(G::TriangleGrp) = "\$G^{$(G.order1),$(G.order2),$(G.order3)}_$(G.index)"
function TriangleGrp(generators, relations, nt::NamedTuple)
function TriangleGrp(type::NTuple{3,Int}, generators, relations, nt::NamedTuple)
# @assert fieldnames(SmallHyperbolicGrp) == propertynames(nt)
hyperbolic, witness = if hasproperty(nt, :hyperbolic)
h = _tf_missing(nt.hyperbolic)
@ -37,6 +38,7 @@ function TriangleGrp(generators, relations, nt::NamedTuple)
end
TriangleGrp(
type,
convert(Vector{String}, generators),
convert(Vector{String}, relations),
convert(Int, nt.order1),