mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-08-25 12:06:57 +02:00
make wl_ball thread safe: pre-compute normalforms!
This commit is contained in:
parent
22c21706d8
commit
9006f8a4a1
@ -34,7 +34,8 @@ function _wlmetric_ball(S, old, radius, op, collect, unique)
|
||||
for r in 2:radius
|
||||
old = let old = old, S = S,
|
||||
new = collect(
|
||||
(g = op(o, s); hash(g); g)
|
||||
(g = op(o, s); normalform!(g); hash(g); g)
|
||||
# normalform! and hash are to make assure thread-safety of produced elts
|
||||
for o in @view(old[sizes[end-1]:end]) for s in S
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user