Skip to content
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(a::Diagonal, b) ref #24980 #30770

Closed
abraunst opened this issue Jan 20, 2019 · 2 comments
Closed

kron(a::Diagonal, b) ref #24980 #30770

abraunst opened this issue Jan 20, 2019 · 2 comments

Comments

@abraunst
Copy link
Contributor

abraunst commented Jan 20, 2019

Should kron(::Diagonal, ::Union{SparseVector, SparseMatrix}) (and viceversa) return SparseMatrixCSC? (IMHO yes)
Should kron(::Diagonal, ::Matrix) (and viceversa) return SparseMatrixCSC? (this would be consistent with the recently merged #24980 in which sparse times dense gives sparse -- but currently there is an implementation for Diagonal times dense returning dense so I'm not so sure)

@andreasnoack
Copy link
Member

Should kron(::Diagonal, ::Union{SparseVector, SparseMatrix}) (and viceversa) return SparseMatrixCSC?

Yes, I definitely think it should.

...but currently there is an implementation for Diagonal times dense returning dense so I'm not so sure)

This case is a bit complicated because of the dependency structure. To return a sparse matrix, SparseArrays would have to be a dependency of LinearAlgebra.

@abraunst
Copy link
Contributor Author

abraunst commented Mar 7, 2020

I will close this since the first issue is resolved, and the second probably won't be,

@abraunst abraunst closed this as completed Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants