1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-07-17 10:55:30 +02:00

better inverse function

This commit is contained in:
kalmar 2017-01-21 17:15:59 +01:00
parent 58c90d244d
commit bfa1ad73ef

View File

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