Copy updated zero-pivot columns back in xLASYF and xLAHEF - #1433
Merged
ACSimon33 merged 2 commits intoOct 4, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1433 +/- ##
==========================================
+ Coverage 69.38% 69.39% +0.01%
==========================================
Files 6122 6122
Lines 487347 487627 +280
Branches 23268 23268
==========================================
+ Hits 338166 338410 +244
- Misses 148747 148783 +36
Partials 434 434
Continue to review full report in Codecov by Harness.
|
ACSimon33
requested changes
Oct 4, 2026
ACSimon33
approved these changes
Oct 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #1432, reported by @Bruun97.
When a column becomes exactly zero after a blocked Bunch-Kaufman panel update, xLASYF/xLAHEF set INFO but leave the original column in A instead of copying the updated column from W. The returned factors can therefore fail to reconstruct the input even though INFO > 0 documents a completed, singular factorization.
Copy the updated column back to A in both triangle branches of SLASYF, DLASYF, CLASYF, ZLASYF, CLAHEF and ZLAHEF, matching the _rook/_rk siblings. The production change is 12 lines. The Hermitian routines still force the diagonal real, and non-singular paths are unchanged.
The existing CHKSY/CHKHE drivers now test a rank-one 2-by-2 block whose second pivot becomes zero during elimination. They check INFO and reconstruct the input with xSYT01/xHET01. Coverage includes upper/lower storage, all six routines, and both real and imaginary off-diagonal blocks for complex types. The checks respect the existing singular-matrix selection.
Native verification on current master with gfortran 13.3,
-fcheck=alland reference BLAS:lapack_testing.py.These runs used Linux x86_64. Other compilers and optimized BLAS were not tested.
Checklist