mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-26 02:20:30 +01:00
reduce is run in *_multiply! don't need to further reduce
This commit is contained in:
parent
9e435188e1
commit
00d92df413
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user