@@ -347,6 +347,10 @@ Base.@propagate_inbounds function Base.getindex(A::AbstractVectorOfArray, _arg,
347
347
end
348
348
end
349
349
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
+
350
354
function _observed (A:: AbstractDiffEqArray{T, N} , sym, i:: Int ) where {T, N}
351
355
observed (A, sym)(A. u[i], A. p, A. t[i])
352
356
end
395
399
396
400
# Interface for the two-dimensional indexing, a more standard AbstractArray interface
397
401
@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]
398
405
Base. axes (VA:: AbstractVectorOfArray ) = Base. OneTo .(size (VA))
399
406
Base. axes (VA:: AbstractVectorOfArray , d:: Int ) = Base. OneTo (size (VA)[d])
400
407
592
599
@inline Statistics. var (VA:: AbstractVectorOfArray ; kwargs... ) = var (Array (VA); kwargs... )
593
600
@inline Statistics. cov (VA:: AbstractVectorOfArray ; kwargs... ) = cov (Array (VA); kwargs... )
594
601
@inline Statistics. cor (VA:: AbstractVectorOfArray ; kwargs... ) = cor (Array (VA); kwargs... )
602
+ @inline Base. adjoint (VA:: AbstractVectorOfArray ) = Adjoint (VA)
595
603
596
604
# make it show just like its data
597
605
function Base. show (io:: IO , m:: MIME"text/plain" , x:: AbstractVectorOfArray )
0 commit comments