mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-04 10:06:27 +01:00
deepcopy S to avoid external changes
This commit is contained in:
parent
342d842585
commit
a71f99670c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user