You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
Should
kron(::Diagonal, ::Union{SparseVector, SparseMatrix})
(and viceversa) returnSparseMatrixCSC
? (IMHO yes)Should
kron(::Diagonal, ::Matrix)
(and viceversa) returnSparseMatrixCSC
? (this would be consistent with the recently merged #24980 in which sparse times dense gives sparse -- but currently there is an implementation forDiagonal
times dense returning dense so I'm not so sure)The text was updated successfully, but these errors were encountered: