Skip to content

Commit be84111

Browse files
Update vector_of_array.jl
1 parent 9cb8bd2 commit be84111

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vector_of_array.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ mutable struct DiffEqArray{T, N, A, B} <: AbstractDiffEqArray{T, N, A}
99
end
1010

1111
Base.Array(VA::AbstractVectorOfArray{T,N,A}) where {T,N,A <: AbstractVector{<:AbstractVector}} = reduce(hcat,VA.u)
12+
Base.Array(VA::AbstractVectorOfArray{T,N,A}) where {T,N,A <: AbstractVector{<:Number}} = VA.u
1213
function Base.Array(VA::AbstractVectorOfArray)
1314
vecs = vec.(VA.u)
1415
Array(reshape(reduce(hcat,vecs),size(VA.u[1])...,length(VA.u)))

0 commit comments

Comments
 (0)