-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Multiplying triangular sparse matrix with sparse matrix fails to return sparse matrix #35610
Comments
julia/stdlib/SparseArrays/src/linalg.jl Lines 767 to 768 in 2f90dde
Looks to me that there was some type of attempt to treat Y*X actually does the right thing there; julia/stdlib/SparseArrays/src/linalg.jl Lines 49 to 50 in 2f90dde
and, as far as I can see, this methods exists and does the right thing already: julia/stdlib/SparseArrays/src/linalg.jl Lines 128 to 129 in 2f90dde
and already does the correct thing. So, i think this should simply be removed: (*)(L::TriangularSparse, B::AbstractSparseMatrixCSC) = lmul!(L, Array(B)) (edit: I totally missed that KlausC already had a PR going) |
The point of
The problem with The pending PR fixed both cases using the famous Gustafson multiplication algorithm. |
…g#35610 JuliaLang#35642 (JuliaLang#35659) * multiplication of sparse triangular matrices * removed disambiguity and improved test cases * test cases for `nnz, nzrange, rowvals, nonzeros`
Multiplying an
UpperTriangular{SparseMatrixCSC}
with aSparseMatrixCSC
should return a sparse matrix. It returns a dense matrix as of version 1.2.Computational effort should be approximately 1/2 of sparse multiplication of SparseMatrixCSC.
With version 1, we have the same error as in #35609
The text was updated successfully, but these errors were encountered: