-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Kron of transpose/adjoint of sparse matrix with other sparse matrix becomes dense #30271
Comments
Example for experimentation: |
|
Won't this copy unnecessarily if the matrix is dense? |
No? |
Ok I did the test, and because |
I guess that |
Anyone want to submit a PR for this one? |
It seems like #24980 could be revived. |
This is because of the
kron
fallback forAbstractMatrix
in LinearAlgebra catching theTranspose{Float64,SparseMatrixCSC{Float64,Int64}}
matrix type.This is a manifestation of the issue noted here #27586 (comment). I had tried a bunch of different signatures in that PR in order to switch to an abstract type instead of
VecOrMat
, but it caused an ambiguity with the LinearAlgebra method.Note that this is a regression since 0.6 properly returned a sparse matrix by materializing the transpose/adjoint immediately instead of wrapping.
The text was updated successfully, but these errors were encountered: