mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-26 02:20: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
|
elseif p == 0
|
||||||
return one(x)
|
return one(x)
|
||||||
elseif p == 1
|
elseif p == 1
|
||||||
return deepcopy(x)
|
return x
|
||||||
elseif p == 2
|
elseif p == 2
|
||||||
return x*x
|
return x*x
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user