reworked inv + doc

This commit is contained in:
kalmar 2017-07-21 16:02:44 +02:00
parent 70a8a9b72d
commit c60e5a8c5c
1 changed files with 3 additions and 4 deletions

View File

@ -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
###############################################################################