Skip to content

Commit b4f82dd

Browse files
committed
Change working in sparsevec test, and add Vector to union in hvcat.
1 parent 65573d9 commit b4f82dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

base/sparse/sparsematrix.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2911,7 +2911,7 @@ function vcat(Xin::Union{Vector, Matrix, SparseMatrixCSC}...)
29112911
vcat(X...)
29122912
end
29132913

2914-
function hvcat(rows::Tuple{Vararg{Int}}, X::Union{Matrix, SparseMatrixCSC}...)
2914+
function hvcat(rows::Tuple{Vararg{Int}}, X::Union{Vector, Matrix, SparseMatrixCSC}...)
29152915
nbr = length(rows) # number of block rows
29162916

29172917
tmp_rows = Array{SparseMatrixCSC}(nbr)

test/sparsedir/sparsevector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ for Tv in [Float32, Float64, Int64, Int32, Complex128]
989989
end
990990
end
991991

992-
# Matrix vector cat not supported for sparse #13130 and #16661
992+
# ref 13130 and 16661
993993
@test issparse([sprand(10,10,.1) sprand(10,.1)])
994994
@test issparse([sprand(10,1,.1); sprand(10,.1)])
995995

0 commit comments

Comments
 (0)