1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-10-15 07:20:35 +02: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 end
r_multiply!(y, x.symbols) r_multiply!(y, x.symbols)
end end
return Groups.freegroup_reduce!(y) return y
end end
(^)(x::GWord, n::Integer) = power_by_squaring(x,n) (^)(x::GWord, n::Integer) = power_by_squaring(x,n)