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

deepcopy S to avoid external changes

This commit is contained in:
kalmar 2017-08-08 19:15:55 +02:00
parent 342d842585
commit a71f99670c

View File

@ -395,6 +395,7 @@ end
function generate_balls{T<:GroupElem}(S::Vector{T}, Id::T; radius=2, op=*) function generate_balls{T<:GroupElem}(S::Vector{T}, Id::T; radius=2, op=*)
sizes = Vector{Int}() sizes = Vector{Int}()
S = deepcopy(S)
S = unshift!(S, Id) S = unshift!(S, Id)
B = [Id] B = [Id]
for i in 1:radius for i in 1:radius