Skip to content

Commit 45203a3

Browse files
committed
support Vcat with matrix mad
1 parent 2414cbf commit 45203a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/InfiniteLinearAlgebra.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ function chop(A::AbstractMatrix{T}, tol::Real=zero(real(T))) where T
115115
end
116116

117117
pad(c::AbstractVector{T}, ax::Union{OneTo,OneToInf}) where T = [c; Zeros{T}(length(ax)-length(c))]
118+
pad(c::AbstractMatrix{T}, ax::Union{OneTo,OneToInf}, ::Colon) where T = [c; Zeros{T}(length(ax)-length(c), size(c,2))]
118119
pad(c, ax...) = PaddedArray(c, ax)
119120

120121
pad(c::Transpose, ax, bx) = transpose(pad(parent(c), bx, ax))

0 commit comments

Comments
 (0)