1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 18:15:29 +01:00

reduce is run in *_multiply! don't need to further reduce

This commit is contained in:
kalmar 2017-01-31 16:54:03 +01:00
parent 9e435188e1
commit 00d92df413

View File

@ -173,7 +173,7 @@ function power_by_squaring{T}(x::GWord{T}, p::Integer)
end
r_multiply!(y, x.symbols)
end
return Groups.freegroup_reduce!(y)
return y
end
(^)(x::GWord, n::Integer) = power_by_squaring(x,n)