1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-03 17:56:28 +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=*)
sizes = Vector{Int}()
S = deepcopy(S)
S = unshift!(S, Id)
B = [Id]
for i in 1:radius