@@ -347,6 +347,10 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractVectorOfArray, _arg,
347347 end
348348end
349349
350+ Base. @propagate_inbounds function Base. getindex (A:: Adjoint{T,<:AbstractVectorOfArray} , idxs... ) where {T}
351+ return getindex (A. parent, reverse (to_indices (A, idxs))... )
352+ end
353+
350354function _observed (A:: AbstractDiffEqArray{T, N} , sym, i:: Int ) where {T, N}
351355 observed (A, sym)(A. u[i], A. p, A. t[i])
352356end
395399
396400# Interface for the two-dimensional indexing, a more standard AbstractArray interface
397401@inline Base. size (VA:: AbstractVectorOfArray ) = (size (VA. u[1 ])... , length (VA. u))
402+ @inline Base. size (VA:: AbstractVectorOfArray , i) = size (VA)[i]
403+ @inline Base. size (A:: Adjoint{T,<:AbstractVectorOfArray} ) where {T} = reverse (size (A. parent))
404+ @inline Base. size (A:: Adjoint{T,<:AbstractVectorOfArray} , i) where {T} = size (A)[i]
398405Base. axes (VA:: AbstractVectorOfArray ) = Base. OneTo .(size (VA))
399406Base. axes (VA:: AbstractVectorOfArray , d:: Int ) = Base. OneTo (size (VA)[d])
400407
592599@inline Statistics. var (VA:: AbstractVectorOfArray ; kwargs... ) = var (Array (VA); kwargs... )
593600@inline Statistics. cov (VA:: AbstractVectorOfArray ; kwargs... ) = cov (Array (VA); kwargs... )
594601@inline Statistics. cor (VA:: AbstractVectorOfArray ; kwargs... ) = cor (Array (VA); kwargs... )
602+ @inline Base. adjoint (VA:: AbstractVectorOfArray ) = Adjoint (VA)
595603
596604# make it show just like its data
597605function Base. show (io:: IO , m:: MIME"text/plain" , x:: AbstractVectorOfArray )
0 commit comments