Skip to content

Commit 49d6742

Browse files
authored
Update vector_of_array.jl
Fix SciML#354
1 parent 87337d8 commit 49d6742

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/vector_of_array.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,7 @@ __parameterless_type(T) = Base.typename(T).wrapper
270270
Base.@propagate_inbounds function _getindex(A::AbstractVectorOfArray{T, N},
271271
::NotSymbolic, I::Colon...) where {T, N}
272272
@assert length(I) == ndims(A.u[1]) + 1
273-
vecs = if N == 1
274-
A.u
275-
else
276-
vec.(A.u)
277-
end
278-
return Adapt.adapt(__parameterless_type(T),
279-
reshape(reduce(hcat, vecs), size(A.u[1])..., length(A.u)))
273+
return Array(A)
280274
end
281275

282276
Base.@propagate_inbounds function _getindex(A::AbstractVectorOfArray{T, N},

0 commit comments

Comments
 (0)