better inverse function

This commit is contained in:
kalmar 2017-01-21 17:15:59 +01:00
parent 58c90d244d
commit bfa1ad73ef
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function inv{T}(W::GWord{T})
if length(W) == 0
return W
else
return prod(reverse([inv(s) for s in W.symbols]))
return reduceGWord{T}(reverse([inv(s) for s in W.symbols]))
end
end