We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af39294 commit b6a1411Copy full SHA for b6a1411
src/utils.jl
@@ -80,7 +80,13 @@ end
80
end
81
else
82
if perform_copy
83
- push!(a,deepcopy(x))
+ if typeof(x) <: Vector && !(eltype(x) <: Number) && !(eltype(x) <: StaticArray)
84
+ push!(a,recursivecopy(x))
85
+ elseif typeof(x) <: ArrayPartition || typeof(x) <: AbstractVectorOfArray
86
+ push!(a,copy(x))
87
+ else
88
+ push!(a,deepcopy(x))
89
+ end
90
91
push!(a,x)
92
0 commit comments