Skip to content

Commit

Permalink
use more type stable cat_t implementation
Browse files Browse the repository at this point in the history
After JuliaLang/julia#45028, it will be more recommended to use this
more type stable version of `cat_t`.
  • Loading branch information
aviatesk committed Apr 20, 2022
1 parent f8ffbb7 commit 27ea202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparsevector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ _makesparse(x::AbstractArray) = SparseMatrixCSC(issparse(x) ? x : sparse(x))
function Base._cat(dims, Xin::_SparseConcatGroup...)
X = map(_makesparse, Xin)
T = promote_eltype(Xin...)
Base.cat_t(T, X...; dims=dims)
Base._cat_t(dims, T, X...)
end
function hcat(Xin::_SparseConcatGroup...)
X = map(_makesparse, Xin)
Expand Down

0 comments on commit 27ea202

Please sign in to comment.