Skip to content

TESTING: add M=P=Q=1 CS decomposition test input - #1529

Merged
langou merged 2 commits into
Reference-LAPACK:masterfrom
rioyu123:codex/lapack-scalar-csd-coverage
Nov 30, 2026
Merged

langou merged 2 commits into
Reference-LAPACK:masterfrom
rioyu123:codex/lapack-scalar-csd-coverage

Conversation

@rioyu123

@rioyu123 rioyu123 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add M=P=Q=1 coverage to the CS decomposition tests, as requested in #1231. A separate input keeps the existing suite and its random sequence intact.

The scalar case uses matrix types 1, 3, and 4. Type 2 deliberately perturbs the input. For this shape the 2-by-1 routine copies the input into U1, so checking U1 for orthogonality would measure that perturbation. The original suite still runs all four types.

Testing

  • All 16 CSD CTests passed across four precisions and both integer APIs. Each driver passed 660 existing checks and 45 scalar checks.
  • Built and ran all four scalar targets with GNU Make.
  • Temporarily making the 2-by-1 routine return the identity instead of copying the input made two scalar checks fail in each precision.

Checklist

  • The documentation has been updated. N/A (tests only).
  • If the PR solves a specific issue, it is set to be closed on merge.

Fixes #1231.

I used Codex to implement and test this change and Claude to review it.

@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.79%. Comparing base (fe868c0) to head (dd9e58e).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1529   +/-   ##
=======================================
  Coverage   70.79%   70.79%           
=======================================
  Files        6243     6243           
  Lines      501708   501708           
  Branches    23516    23516           
=======================================
+ Hits       355168   355196   +28     
+ Misses     145413   145385   -28     
  Partials     1127     1127           
Components Coverage Δ
BLAS 99.73% <ø> (ø)
CBLAS 96.95% <ø> (ø)
LAPACK 83.79% <ø> (+0.01%) ⬆️
LAPACKE 4.93% <ø> (ø)
TMGLIB 55.69% <ø> (ø)
BLAS testing 88.79% <ø> (ø)
CBLAS testing 89.65% <ø> (ø)
LAPACK testing 82.40% <ø> (+<0.01%) ⬆️
LAPACKE testing ∅ <ø> (∅)
see 12 files with indirect coverage changes

Continue to review full report in Codecov by Harness.

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

@langou
langou merged commit 3f464af into Reference-LAPACK:master Nov 30, 2026
60 checks passed
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.

TESTING/EIG/csd.in: please add M=P=Q=1 (and small degenerate cases) — exposes a [CZ]UNCSD2BY1 bug already fixed between 3.12.1 and current

2 participants