@@ -1108,7 +1108,9 @@ function hcat(Xin::AbstractSparseVector...)
1108
1108
X = map (_unsafe_unfix, Xin)
1109
1109
Tv = promote_type (map (eltype, X)... )
1110
1110
Ti = promote_type (map (indtype, X)... )
1111
- r = _absspvec_hcat (map (x -> convert (SparseVector{Tv,Ti}, x), X)... )
1111
+ r = (function (:: Type{SV} ) where SV
1112
+ _absspvec_hcat (map (x -> convert (SV, x), X)... )
1113
+ end )(SparseVector{Tv,Ti})
1112
1114
return @if_move_fixed Xin... r
1113
1115
end
1114
1116
function _absspvec_hcat (X:: AbstractSparseVector{Tv,Ti} ...) where {Tv,Ti}
@@ -1144,7 +1146,9 @@ function vcat(Xin::AbstractSparseVector...)
1144
1146
X = map (_unsafe_unfix, Xin)
1145
1147
Tv = promote_type (map (eltype, X)... )
1146
1148
Ti = promote_type (map (indtype, X)... )
1147
- r = _absspvec_vcat (map (x -> convert (SparseVector{Tv,Ti}, x), X)... )
1149
+ r = (function (:: Type{SV} ) where SV
1150
+ _absspvec_vcat (map (x -> convert (SV, x), X)... )
1151
+ end )(SparseVector{Tv,Ti})
1148
1152
return @if_move_fixed Xin... r
1149
1153
end
1150
1154
function _absspvec_vcat (X:: AbstractSparseVector{Tv,Ti} ...) where {Tv,Ti}
0 commit comments