Skip to content

Commit 1fc5cd1

Browse files
committed
Update vector_of_array.jl
Fix #354
1 parent e00bdb2 commit 1fc5cd1

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
@@ -296,13 +296,7 @@ __parameterless_type(T) = Base.typename(T).wrapper
296296
Base.@propagate_inbounds function _getindex(A::AbstractVectorOfArray{T, N},
297297
::NotSymbolic, I::Colon...) where {T, N}
298298
@assert length(I) == ndims(A.u[1]) + 1
299-
vecs = if N == 1
300-
A.u
301-
else
302-
vec.(A.u)
303-
end
304-
return Adapt.adapt(__parameterless_type(T),
305-
reshape(reduce(hcat, vecs), size(A.u[1])..., length(A.u)))
299+
return Array(A)
306300
end
307301

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

0 commit comments

Comments
 (0)