Repository navigation
TESTING/LIN: fix short-wide TSQR residual checks - #1364
Merged
langou merged 1 commit intoAug 23, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1364 +/- ##
===========================================
+ Coverage 0.00% 82.38% +82.38%
===========================================
Files 1937 1945 +8
Lines 190566 190130 -436
===========================================
+ Hits 0 156637 +156637
+ Misses 190566 33493 -157073 ☔ View full report in Codecov by Harness. |
langou
approved these changes
Aug 23, 2026
Contributor
Author
|
thank you very much! |
nakatamaho
added a commit
to nakatamaho/mplapack
that referenced
this pull request
Aug 23, 2026
Apply the upstream LAPACK fix from Reference-LAPACK/lapack#1364 (merged).
ilayn
added a commit
to ilayn/semicolon-lapack
that referenced
this pull request
Oct 26, 2026
…ects (#43) - Use the DLAMCH constant the Fortran asks for in 35 routines (and their s/c copies). DBL_EPSILON stood in for DLAMCH('Epsilon'), which is half of it, or the reverse. In xLAGTS this doubled the pivot tolerance, and inverse iteration in xSTEIN failed on tight clusters, so ZHEEVX/ZHPEVX returned INFO > 0 where reference LAPACK succeeds. - xGEDMD returns after XERBLA in the NaN checks of X and Y. Reference-LAPACK/lapack#1395 - ZLAGHE/CLAGHE guard a zero leading element of the reflector. Reference-LAPACK/lapack#1365 Reference-LAPACK/lapack#1366 - xTSQR01 checks the GEMLQ('R','N') residual it computes. Reference-LAPACK/lapack#1364 - xDRVES: Fortran xSLECT with SELOPT = 0, complete test 13, and the documented xGEES exit codes N+1 and N+2. Reference-LAPACK/lapack#1355 - IL/IU drawn from the full [1, N] range in the CHKST, DRVST, DRVSG, CHKBD and DRVBD drivers, and the xDRVBD GESVDX tests ported line by line. Reference-LAPACK/lapack#1347 - xDRVLS random right-hand sides and EPS, real QZ drivers SAFMIN/ULP, RFP driver parameters from the *test_rfp.in files, invented singular values removed from the xDRVBD generator, new seed for zDRVST/zDRVST2STG.
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.
Problem
In the short-wide (
SW) branch ofDTSQR01andCTSQR01, the test computes the residual for theC*Qoperation intoCF, but then measures a different workspaceDF.The current code is effectively:
The same issue exists in the complex routine with
CGEMMandCLANGE.Why this is wrong
In this part of the test:
Cis anM-by-Ninput matrix.CFis itsM-by-Nwork copy and receives theC*Qresidual.DFbelongs to the precedingQ^T*Dtest and contains stale data at this point.M, N, M, notN, M, N.This can make the test report a failure based on the previous
DFworkspace rather than on theC*Qresidual. For example, the issue was exposed by a short-wide case withM=1,N=3,MB=20, andNB=3.Fix
Use the result buffer and dimensions corresponding to the
C*Qcomputation:and the analogous
CLANGEcall inCTSQR01.Validation
gfortran -c -ffixed-form -std=legacy TESTING/LIN/dtsqr01.fgfortran -c -ffixed-form -std=legacy TESTING/LIN/ctsqr01.fgit diff --check