Skip to content

improve deflation criterion in xhgeqz #505

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

thijssteel
Copy link
Collaborator

This PR replaces the normwise deflation in xhgeqz with elementwise deflation. Split from my other PR at the request of @langou
This is stricter than normwise deflation because the sum of the diagonals is always going to be smaller than the frobenius norm.
This also matches the criterion from my multishift QZ implementation.

Small note: This is less strict than the deflation in the QR algorithm, because there, both the smaller-than-diagonal criterion and the stricter criterion by Françoise Tisseur must be satisfied. This is a step in the right though.

@codecov
Copy link

codecov bot commented Mar 4, 2021

Codecov Report

Merging #505 (d453071) into master (5123fe9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #505   +/-   ##
=======================================
  Coverage   83.33%   83.33%           
=======================================
  Files        1820     1820           
  Lines      170857   170869   +12     
=======================================
+ Hits       142384   142399   +15     
+ Misses      28473    28470    -3     
Impacted Files Coverage Δ
SRC/chgeqz.f 92.88% <100.00%> (+0.07%) ⬆️
SRC/dhgeqz.f 95.84% <100.00%> (+0.38%) ⬆️
SRC/shgeqz.f 95.84% <100.00%> (+0.38%) ⬆️
SRC/zhgeqz.f 92.88% <100.00%> (+2.12%) ⬆️
SRC/dlagv2.f 72.34% <0.00%> (-7.45%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5123fe9...d453071. Read the comment docs.

Copy link
Collaborator

@weslleyspereira weslleyspereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thijssteel ! Looks good to me!

@langou
Copy link
Contributor

langou commented Mar 5, 2021

Sounds good to me. HGEQZ uses |Re|+|Im| while I think LAQZ0 uses sqrt( Re^2 + Im^2 ) for computing the magnitude of complex entries. Not a worry for me, just a comment in passing.

@langou langou merged commit 8bd8372 into Reference-LAPACK:master Mar 5, 2021
christoph-conrads pushed a commit to christoph-conrads/lapack that referenced this pull request May 23, 2021
…oved-deflation-criterion

improve deflation criterion in xhgeqz
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.

3 participants