make orbits into vectors

This commit is contained in:
kalmar 2017-06-21 16:43:20 +02:00
parent 403984e8d2
commit cc0f07bfd2

View File

@ -62,18 +62,18 @@ function orbit_decomposition(G::Nemo.Group, E::Vector, rdict=GroupRings.reverse_
elts = collect(elements(G))
tovisit = trues(E);
orbits = Vector{Set{Int}}()
orbits = Vector{Vector{Int}}()
for i in 1:endof(E)
if tovisit[i]
orbit = Set{Int}()
orbit = Vector{Int}()
a = E[i]
for g in elts
idx = rdict[g(a)]
tovisit[idx] = false
push!(orbit,idx)
end
push!(orbits, orbit)
push!(orbits, unique(orbit))
end
end
return orbits