kron doesn't support Diagonals #668
Copy link
Copy link
Closed
Labels
arraysThe array abstraction: broadcasting, mapreduce, indexing, views, generic linear algebra.The array abstraction: broadcasting, mapreduce, indexing, views, generic linear algebra.
Description
Right now only full matrices are supported, and to pass in a Diagonal you have to convert it to a full dense array with diagm. Some additional special cases here would be great.
Metadata
Metadata
Assignees
Labels
arraysThe array abstraction: broadcasting, mapreduce, indexing, views, generic linear algebra.The array abstraction: broadcasting, mapreduce, indexing, views, generic linear algebra.
Activity
shreyas-omkar commentedon Feb 22, 2026
Hi @kshyatt , I was trying to call
kron(Diagonal(ROCArray), Diagonal(ROCArray))withallowscalar(false)on my RX9060XT (gfx1200) GPU, it crashes with a HIPError and poisons the entire GPU context, so nothing GPU-related works until you restart Julia.Is this something which is specific to RDNA4 as even or is this actually a bug worth creating an issue?
maleadt commentedon Oct 19, 2026
Fixed by #690, which added
kron/kron!for GPU-backedDiagonalwithDiagonaland dense matrices.