From c60e5a8c5c5e20adf5bbd5482e9b8584fb349095 Mon Sep 17 00:00:00 2001 From: kalmar Date: Fri, 21 Jul 2017 16:02:44 +0200 Subject: [PATCH] reworked inv + doc --- src/WreathProducts.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/WreathProducts.jl b/src/WreathProducts.jl index 9f850c2..ca02615 100644 --- a/src/WreathProducts.jl +++ b/src/WreathProducts.jl @@ -184,12 +184,11 @@ end doc""" inv(g::WreathProductElem) > Returns the inverse of element of a wreath product, according to the formula -> g^-1 = (g.n, g.p)^-1 = (g.p^-1(g.n^-1), g.p^-1). +> `g^-1 = (g.n, g.p)^-1 = (g.p^-1(g.n^-1), g.p^-1)`. """ function inv(g::WreathProductElem) - G = parent(g) - w = G.N(inv(g.n).elts[g.p.d]) - return G(w, inv(g.p)) + w = DirectProductGroupElem(inv(g.n).elts[g.p.d]) + return WreathProductElem(w, inv(g.p), false) end ###############################################################################