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) for i in 1:endof(E)
if tovisit[i] if tovisit[i]
orbit = Vector{Int}() orbit = zeros(Int, length(elts))
a = E[i] a = E[i]
for g in elts Threads.@threads for i in 1:length(elts)
idx = rdict[g(a)] orbit[i] = rdict[elts[i](a)]
tovisit[idx] = false
push!(orbit,idx)
end end
tovisit[orbit] = false
push!(orbits, unique(orbit)) push!(orbits, unique(orbit))
end end
end end