From 614e8c9ed4c1d0a1c1f758533692af773d2541ac Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 25 Jan 2024 06:14:27 -0500 Subject: [PATCH 1/3] Fix docstring for getting the i'th array of array --- 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 b4f6f2e7..d230e707 100644 --- a/src/vector_of_array.jl +++ b/src/vector_of_array.jl @@ -11,7 +11,7 @@ act like it's a higher-dimensional vector, and easily convert it to different fo structure is: ```julia -A[i] # Returns the ith array in the vector of arrays +A.u[i] # Returns the ith array in the vector of arrays A[j, i] # Returns the jth component in the ith array A[j1, ..., jN, i] # Returns the (j1,...,jN) component of the ith array ``` 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 2/3] 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) From c976b29565ae829708489c230bb8cbf7fcd3abb7 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 31 Jan 2024 08:17:32 -0500 Subject: [PATCH 3/3] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index f82b2edd..c5e37b15 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "RecursiveArrayTools" uuid = "731186ca-8d62-57ce-b412-fbd966d074cd" authors = ["Chris Rackauckas "] -version = "3.6.2" +version = "3.7.0" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"