From 2d1736b4a5833cc2a7a168eee5208b60ade7bc80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Miclu=C8=9Ba-C=C3=A2mpeanu?= Date: Fri, 26 Jan 2024 03:31:49 +0200 Subject: [PATCH] fix: replace deprecated indexing in `vecarr_to_vectors` --- src/vector_of_array.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector_of_array.jl b/src/vector_of_array.jl index d230e707..c563ce61 100644 --- a/src/vector_of_array.jl +++ b/src/vector_of_array.jl @@ -691,7 +691,7 @@ Base.reshape(A::AbstractVectorOfArray, dims...) = Base.reshape(Array(A), dims... @inline Base.all(f, VA::AbstractVectorOfArray) = all(all(f, u) for u in VA.u) # conversion tools -vecarr_to_vectors(VA::AbstractVectorOfArray) = [VA[i, :] for i in eachindex(VA[1])] +vecarr_to_vectors(VA::AbstractVectorOfArray) = [VA[i, :] for i in eachindex(VA.u[1])] Base.vec(VA::AbstractVectorOfArray) = vec(convert(Array, VA)) # Allocates # stack non-ragged arrays to convert them function Base.convert(::Type{Array}, VA::AbstractVectorOfArray)