mirror of
https://github.com/kalmarek/SmallHyperbolic
synced 2024-11-27 08:30:27 +01:00
formatting
This commit is contained in:
parent
7e540e8493
commit
91fb10742e
@ -71,7 +71,8 @@ function adjacency(ϱ, a, b; prec=256)
|
||||
A = AcbMatrix(ϱ(a), prec = prec)
|
||||
B = AcbMatrix(ϱ(b), prec = prec)
|
||||
res = sum(A^i for i = 1:order_a-1) + sum(B^i for i = 1:order_b-1)
|
||||
return Arblib.scalar_div!(res, res, k)
|
||||
#return Arblib.scalar_div!(res, res, k)
|
||||
return res
|
||||
end
|
||||
|
||||
function parse_our_args()
|
||||
@ -113,7 +114,8 @@ end
|
||||
parsed_args = parse_our_args()
|
||||
|
||||
const p = let p = parsed_args["p"]
|
||||
isprime(p) || @error "You need to provide a prime, ex: `julia adj_psl2_eigvals.jl -p 31`"
|
||||
isprime(p) ||
|
||||
@error "You need to provide a prime, ex: `julia adj_psl2_eigvals.jl -p 31`"
|
||||
p
|
||||
end
|
||||
|
||||
|
@ -10,18 +10,16 @@ const DATA_DIR = joinpath(@__DIR__, "..", "..", "data")
|
||||
|
||||
function _files_with_extension(dir::AbstractString, ext::AbstractString)
|
||||
return [
|
||||
joinpath(dir, f) for f in readdir(dir) if
|
||||
isfile(joinpath(dir, f)) && endswith(f, '.'*ext)
|
||||
joinpath(dir, f) for
|
||||
f in readdir(dir) if isfile(joinpath(dir, f)) && endswith(f, '.' * ext)
|
||||
]
|
||||
end
|
||||
|
||||
all_grps_presentations =
|
||||
let tables = _files_with_extension(DATA_DIR, "txt")
|
||||
all_grps_presentations = let tables = _files_with_extension(DATA_DIR, "txt")
|
||||
mapreduce(parse_grouppresentations_abstract, union, tables) |> Dict
|
||||
end
|
||||
|
||||
grps =
|
||||
let csvs = _files_with_extension(DATA_DIR, "csv")
|
||||
grps = let csvs = _files_with_extension(DATA_DIR, "csv")
|
||||
|
||||
trGrps = mapreduce(union, csvs) do file
|
||||
m = match(r".*_(\d)_(\d)_(\d).csv", basename(file))
|
||||
@ -33,7 +31,7 @@ grps =
|
||||
groups = data[2:end, :]
|
||||
grps = map(enumerate(eachrow(groups))) do (i, props)
|
||||
nt = (; (Symbol(l) => v for (l, v) in zip(labels, props))...)
|
||||
@debug i, grp_name(nt)
|
||||
# @debug i, grp_name(nt)
|
||||
P = all_grps_presentations[grp_name(nt)]
|
||||
grp = TriangleGrp(type, P.generators, P.relations, nt)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user