mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-05 02:11:27 +01:00
Don't multiply if not necessary -> directly create element
This commit is contained in:
parent
d668574805
commit
6f08259466
@ -201,7 +201,7 @@ matrix_repr(g::WreathProductElem) = Any[matrix_repr(g.p) g.n]
|
|||||||
|
|
||||||
function elements(G::WreathProduct)
|
function elements(G::WreathProduct)
|
||||||
iter = Base.product(collect(elements(G.N)), collect(elements(G.P)))
|
iter = Base.product(collect(elements(G.N)), collect(elements(G.P)))
|
||||||
return (G(n)*G(p) for (n,p) in iter)
|
return (WreathProductElem(n, p, false) for (n,p) in iter)
|
||||||
end
|
end
|
||||||
|
|
||||||
order(G::WreathProduct) = order(G.P)*order(G.N)
|
order(G::WreathProduct) = order(G.P)*order(G.N)
|
||||||
|
Loading…
Reference in New Issue
Block a user