1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-25 02:15:29 +01:00

threaded orbit_decomposition

This commit is contained in:
kalmarek 2017-08-27 18:32:19 +02:00
parent 9328fa9187
commit 0cc0ad94a6

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