Skip to content

Commit f0ce24d

Browse files
don't deepcopy SArray
1 parent 56e735b commit f0ce24d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ end
8080
end
8181
else
8282
if perform_copy
83-
if typeof(x) <: Vector && !(eltype(x) <: Number) && !(eltype(x) <: StaticArray)
83+
if typeof(x) <: Vector && !(eltype(x) <: Number)
8484
push!(a,recursivecopy(x))
8585
elseif typeof(x) <: ArrayPartition || typeof(x) <: AbstractVectorOfArray
8686
push!(a,copy(x))
87+
elseif typeof(x) <: SArray
88+
push!(a,x)
8789
else
8890
push!(a,deepcopy(x))
8991
end

0 commit comments

Comments
 (0)