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
Ideally, these should produce identical results.
In the structured case, the 1x1 matrix D1 isn't expanded to ones(size(D2)), but instead it's expanded to Diagonal(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:
I think you're right that this will need to break type stability. It could alternatively be an error, but that also seems quite broken. This probably happens with all the structured matrices.
1. size-1 StructuredMatrix should behave like scalar during broadcast. Thus their `fzero` should return the only element.
(fix #54087)
2. But for simple broadcast with only one StructuredMatrix, we can keep stability as the structure is "preserved" even for size-1 case. Thus `count_structedmatrix` is added to check that.
3. `count_structedmatrix` is fused to keep `Bidiagonal` stability.
(replace JuliaLang#54067)
N5N3
linked a pull request
Apr 22, 2024
that will
close
this issue
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: