Skip to content

Commit 8f5f185

Browse files
Update vector_of_array.jl
1 parent f6f09a6 commit 8f5f185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vector_of_array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ end
6868

6969
Base.@propagate_inbounds function Base.getindex(A::AbstractVectorOfArray{T, N},
7070
I::Colon...) where {T, N}
71-
@assert length(I) == ndims(A.u[1])-1
71+
@assert length(I) == ndims(A.u[1])+1
7272
vecs = vec.(A.u)
7373
return Adapt.adapt(__parameterless_type(T),reshape(reduce(hcat,vecs),size(A.u[1])...,length(A.u)))
7474
end

0 commit comments

Comments
 (0)