Structured matrices don't extend missing dimensions correctly in broadcasting #54087
Labels
domain:broadcast
Applying a function over a collection
domain:linear algebra
Linear algebra
kind:bug
Indicates an unexpected problem or unintended behavior
Ideally, these should produce identical results.
In the structured case, the
1x1
matrixD1
isn't expanded toones(size(D2))
, but instead it's expanded toDiagonal(ones(Int, size(D2,1)))
. I'm unsure if there's a way to resolve this while preserving type-stability.The text was updated successfully, but these errors were encountered: