Skip to content
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

Resolve stack-overflow in Diagonal*Bidiagonal and (Sym)Tridiagonal #242

Merged
merged 8 commits into from
Oct 19, 2024

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Jul 6, 2024

Currently, there are method ambiguities on v1.10, because of which these paths were not being tested. These ambiguities are resolved on the currently nightly, which reveals a stack-overflow in these methods. This arises because an operation like

(D::Diagonal{<:Any, <:LayoutVector}) * (B::Bidiagonal{<:Any, <:LayoutVector})

internally calls

copy(M::Lmul{<:DiagonalLayout,<:BidiagonalLayout})

but this method was calling D * B again, leading to a cycle. To avoid this, we now broadcast D.diag over the other matrix. The added tests all work on nightly where there are no method ambiguities anymore, and the Bidiagonal ones work on current versions as well.

Copy link

codecov bot commented Jul 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.33%. Comparing base (d315ce3) to head (348f5d8).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #242      +/-   ##
==========================================
- Coverage   90.43%   90.33%   -0.10%     
==========================================
  Files          11       11              
  Lines        1902     1894       -8     
==========================================
- Hits         1720     1711       -9     
- Misses        182      183       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jishnub jishnub marked this pull request as draft July 6, 2024 07:09
@jishnub jishnub marked this pull request as ready for review October 16, 2024 11:15
@jishnub jishnub merged commit dd7e033 into master Oct 19, 2024
17 of 18 checks passed
@jishnub jishnub deleted the jishnub/diag_mul_bitridiag branch October 19, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant