mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2025-02-17 02:30:54 +01:00
make orbit decomposition slightly faster by allocating orbit only once
This commit is contained in:
parent
db455df852
commit
e5b4b9220b
@ -52,12 +52,13 @@ function orbit_decomposition(G::Nemo.Group, E::Vector, rdict=GroupRings.reverse_
|
|||||||
tovisit = trues(E);
|
tovisit = trues(E);
|
||||||
orbits = Vector{Vector{Int}}()
|
orbits = Vector{Vector{Int}}()
|
||||||
|
|
||||||
|
orbit = zeros(Int, length(elts))
|
||||||
|
|
||||||
for i in 1:endof(E)
|
for i in 1:endof(E)
|
||||||
if tovisit[i]
|
if tovisit[i]
|
||||||
orbit = zeros(Int, length(elts))
|
g = E[i]
|
||||||
a = E[i]
|
Threads.@threads for j in 1:length(elts)
|
||||||
Threads.@threads for i in 1:length(elts)
|
orbit[j] = rdict[elts[j](g)]
|
||||||
orbit[i] = rdict[elts[i](a)]
|
|
||||||
end
|
end
|
||||||
tovisit[orbit] = false
|
tovisit[orbit] = false
|
||||||
push!(orbits, unique(orbit))
|
push!(orbits, unique(orbit))
|
||||||
|
Loading…
Reference in New Issue
Block a user