Skip to content

Commit 56a0a46

Browse files
Update src/vector_of_array.jl
1 parent 7829d11 commit 56a0a46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vector_of_array.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ end
7777
Base.Array(VA::AbstractVectorOfArray{T,N,A}) where {T,N,A <: AbstractVector{<:AbstractVector}} = reduce(hcat,VA.u)
7878
Base.Array(VA::AbstractVectorOfArray{T,N,A}) where {T,N,A <: AbstractVector{<:Number}} = VA.u
7979
Base.Matrix(VA::AbstractVectorOfArray{T,N,A}) where {T,N,A <: AbstractVector{<:AbstractVector}} = reduce(hcat,VA.u)
80+
Base.Matrix(VA::AbstractVectorOfArray{T,N,A}) where {T,N,A <: AbstractVector{<:Number}} = Matrix(VA.u)
81+
Base.Matrix(VA::AbstractVectorOfArray{T,N,A}) where {T,N,A <: AbstractVector{<:AbstractVector}} = vec(reduce(hcat,VA.u))
8082
Base.Vector(VA::AbstractVectorOfArray{T,N,A}) where {T,N,A <: AbstractVector{<:Number}} = VA.u
8183
function Base.Array(VA::AbstractVectorOfArray)
8284
vecs = vec.(VA.u)

0 commit comments

Comments
 (0)