threaded orbit_decomposition

This commit is contained in:
kalmarek 2017-08-27 18:32:19 +02:00
parent 9328fa9187
commit 0cc0ad94a6
1 changed files with 4 additions and 5 deletions

View File

@ -54,13 +54,12 @@ function orbit_decomposition(G::Nemo.Group, E::Vector, rdict=GroupRings.reverse_
for i in 1:endof(E)
if tovisit[i]
orbit = Vector{Int}()
orbit = zeros(Int, length(elts))
a = E[i]
for g in elts
idx = rdict[g(a)]
tovisit[idx] = false
push!(orbit,idx)
Threads.@threads for i in 1:length(elts)
orbit[i] = rdict[elts[i](a)]
end
tovisit[orbit] = false
push!(orbits, unique(orbit))
end
end