mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-26 02:20:30 +01:00
PermGroup is iterable in AbstractAlgebra master
This commit is contained in:
parent
0286ca7c4d
commit
e28c296bce
@ -165,7 +165,7 @@ function AutGroup(G::FreeGroup; special=false)
|
|||||||
|
|
||||||
if !special
|
if !special
|
||||||
flips = [flip_autsymbol(i) for i in 1:n]
|
flips = [flip_autsymbol(i) for i in 1:n]
|
||||||
syms = [perm_autsymbol(p) for p in elements(PermutationGroup(n))][2:end]
|
syms = [perm_autsymbol(p) for p in PermutationGroup(n)][2:end]
|
||||||
|
|
||||||
append!(S, [flips; syms])
|
append!(S, [flips; syms])
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@ import Base: inv, reduce, *, ^, power_by_squaring
|
|||||||
import Base: findfirst, findnext
|
import Base: findfirst, findnext
|
||||||
import Base: deepcopy_internal
|
import Base: deepcopy_internal
|
||||||
|
|
||||||
|
export elements
|
||||||
|
|
||||||
using LinearAlgebra
|
using LinearAlgebra
|
||||||
using Markdown
|
using Markdown
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ matrix_repr(g::WreathProductElem) = Any[matrix_repr(g.p) g.n]
|
|||||||
|
|
||||||
function elements(G::WreathProduct)
|
function elements(G::WreathProduct)
|
||||||
Nelts = collect(elements(G.N))
|
Nelts = collect(elements(G.N))
|
||||||
Pelts = collect(elements(G.P))
|
Pelts = collect(G.P)
|
||||||
return (WreathProductElem(n, p, false) for n in Nelts, p in Pelts)
|
return (WreathProductElem(n, p, false) for n in Nelts, p in Pelts)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user