-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vcat of matrices should not be in SparseArrays.jl #28234
Comments
Well, |
Type piracy was not the right word... but it's a bit silly since the sparse array function immediately calls |
The present code organization is an artifact of hacking around the lack of a proper concatenation promotion system; it should indeed change one day :). Best! |
This has been fixed in #43127 : julia> @which vcat(randn(2,10), randn(2,10))
vcat(A::Union{Vector{T}, Matrix{T}, LinearAlgebra.Adjoint{T, Vector{T}}, LinearAlgebra.Transpose{T, Vector{T}}, LinearAlgebra.AbstractTriangular{T, A} where A<:(Matrix), LinearAlgebra.Hermitian{T, A} where A<:(Matrix), LinearAlgebra.Symmetric{T, A} where A<:(Matrix)}...) where T in LinearAlgebra at /home/aigner/code/julia/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/special.jl:376
julia> @which hcat(randn(2,10), randn(2,10))
hcat(A::Union{Vector{T}, Matrix{T}, LinearAlgebra.Adjoint{T, Vector{T}}, LinearAlgebra.Transpose{T, Vector{T}}, LinearAlgebra.AbstractTriangular{T, A} where A<:(Matrix), LinearAlgebra.Hermitian{T, A} where A<:(Matrix), LinearAlgebra.Symmetric{T, A} where A<:(Matrix)}...) where T in LinearAlgebra at /home/aigner/code/julia/usr/share/julia/stdlib/v1.8/LinearAlgebra/src/special.jl:377
|
This feels like type piracy:
Note that the special case of vector is in Base:
The text was updated successfully, but these errors were encountered: