We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb8bd2 commit be84111Copy full SHA for be84111
src/vector_of_array.jl
@@ -9,6 +9,7 @@ mutable struct DiffEqArray{T, N, A, B} <: AbstractDiffEqArray{T, N, A}
9
end
10
11
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
13
function Base.Array(VA::AbstractVectorOfArray)
14
vecs = vec.(VA.u)
15
Array(reshape(reduce(hcat,vecs),size(VA.u[1])...,length(VA.u)))
0 commit comments