-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Fix Broadcasting of Bidiagonal #35281
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. Just a minor layout comment and a suggestion to strengthen the tests further.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a broadcasting expert, but the desired tests pass.
Thanks so much for taking a stab at this! I think we want a slightly more comprehensive solution, though — this will only work for exactly adjacent pairings of Bidiagonals, but fail if there are more arguments or nesting involved. The key will be to do something like how |
Thanks @dkarrasch, I forgot about this one. Let's backport it, too. |
(cherry picked from commit 0e062e9)
Description
Tries to Fix JuliaLang/LinearAlgebra.jl#707
Adds a check for when theres two
Bidiagnoals
with differinguplo
types.In this case a
Tridiagnoal
should be returned. In the case thatuplo
is the same, aBidiagnoal
is still returned. ( and all other cases stay the same )Testing
added unit tests and ran
structuredbroadcast.jl
Also testing in the shell: