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 56e735b commit f0ce24dCopy full SHA for f0ce24d
src/utils.jl
@@ -80,10 +80,12 @@ end
80
end
81
else
82
if perform_copy
83
- if typeof(x) <: Vector && !(eltype(x) <: Number) && !(eltype(x) <: StaticArray)
+ if typeof(x) <: Vector && !(eltype(x) <: Number)
84
push!(a,recursivecopy(x))
85
elseif typeof(x) <: ArrayPartition || typeof(x) <: AbstractVectorOfArray
86
push!(a,copy(x))
87
+ elseif typeof(x) <: SArray
88
+ push!(a,x)
89
90
push!(a,deepcopy(x))
91
0 commit comments