threaded orbit_decomposition
This commit is contained in:
parent
9328fa9187
commit
0cc0ad94a6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue