make orbits into vectors
This commit is contained in:
parent
403984e8d2
commit
cc0f07bfd2
@ -62,18 +62,18 @@ function orbit_decomposition(G::Nemo.Group, E::Vector, rdict=GroupRings.reverse_
|
|||||||
elts = collect(elements(G))
|
elts = collect(elements(G))
|
||||||
|
|
||||||
tovisit = trues(E);
|
tovisit = trues(E);
|
||||||
orbits = Vector{Set{Int}}()
|
orbits = Vector{Vector{Int}}()
|
||||||
|
|
||||||
for i in 1:endof(E)
|
for i in 1:endof(E)
|
||||||
if tovisit[i]
|
if tovisit[i]
|
||||||
orbit = Set{Int}()
|
orbit = Vector{Int}()
|
||||||
a = E[i]
|
a = E[i]
|
||||||
for g in elts
|
for g in elts
|
||||||
idx = rdict[g(a)]
|
idx = rdict[g(a)]
|
||||||
tovisit[idx] = false
|
tovisit[idx] = false
|
||||||
push!(orbit,idx)
|
push!(orbit,idx)
|
||||||
end
|
end
|
||||||
push!(orbits, orbit)
|
push!(orbits, unique(orbit))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return orbits
|
return orbits
|
||||||
|
Loading…
Reference in New Issue
Block a user