mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 02:05:30 +01:00
one deepcopy less
This commit is contained in:
parent
26e3d74800
commit
666d4f81df
@ -154,7 +154,7 @@ function power_by_squaring{T}(x::GWord{T}, p::Integer)
|
||||
elseif p == 0
|
||||
return one(x)
|
||||
elseif p == 1
|
||||
return deepcopy(x)
|
||||
return x
|
||||
elseif p == 2
|
||||
return x*x
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user