Skip to content

Accept a dummy array for the unused side of row-major TGEVC - #1525

Merged
langou merged 3 commits into
Reference-LAPACK:masterfrom
rioyu123:codex/lapacke-tgevc-one-sided
Nov 29, 2026
Merged

langou merged 3 commits into
Reference-LAPACK:masterfrom
rioyu123:codex/lapacke-tgevc-one-sided

Conversation

@rioyu123

Copy link
Copy Markdown
Contributor

Description

When TGEVC computes only left or only right generalized eigenvectors, callers can supply a dummy array for the other side. With a 2×2 matrix pair, a leading dimension of one for that array works in column-major order. The row-major wrapper returns -11 for SIDE='R' or -13 for SIDE='L'.

The row-major wrappers now allow a unit leading dimension for the unused array. The requested output still needs space for MM columns.

The regression uses a diagonal pair with eigenvalues 1 and 3. It checks the eigenvector count and which eigenvector entries are nonzero for each side in both layouts. All eight LAPACKE high-level test executables passed on Linux across the four precisions and both integer APIs.

Checklist

  • The documentation has been updated. N/A (the routine already documents these leading dimensions).
  • If the PR solves a specific issue, it is set to be closed on merge. N/A (no linked issue).

@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.74%. Comparing base (2737273) to head (0cb257b).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1525      +/-   ##
==========================================
+ Coverage   70.70%   70.74%   +0.04%     
==========================================
  Files        6243     6243              
  Lines      501706   501696      -10     
  Branches    23516    23516              
==========================================
+ Hits       354736   354930     +194     
+ Misses     146019   145701     -318     
- Partials      951     1065     +114     
Components Coverage Δ
BLAS 99.73% <ø> (ø)
CBLAS 96.95% <ø> (ø)
LAPACK 83.77% <ø> (ø)
LAPACKE 4.65% <100.00%> (+0.23%) ⬆️
TMGLIB 55.69% <ø> (ø)
BLAS testing 88.79% <ø> (ø)
CBLAS testing 89.65% <ø> (ø)
LAPACK testing 82.40% <ø> (ø)
LAPACKE testing ∅ <ø> (∅)
Files with missing lines Coverage Δ
LAPACKE/src/lapacke_ctgevc_work.c 51.28% <100.00%> (+51.28%) ⬆️
LAPACKE/src/lapacke_dtgevc_work.c 51.28% <100.00%> (+51.28%) ⬆️
LAPACKE/src/lapacke_stgevc_work.c 51.28% <100.00%> (+51.28%) ⬆️
LAPACKE/src/lapacke_ztgevc_work.c 51.28% <100.00%> (+51.28%) ⬆️

... and 4 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 2737273...0cb257b. Read the comment docs.

@langou

langou commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

There is a failure for openmp-ubuntu-26_04-static.BLAS.blas::sblat1.out (REAL Level 1 BLAS routines). It is not related with this PR but this is an issue. I request to re-run the failed job just in case. If the failure persists, I am not sure when we introduced it. I had not noticed it before. Maybe a new version of gfortran on this machine.

langou
langou previously approved these changes Nov 28, 2026
@langou

langou commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

There is a failure for openmp-ubuntu-26_04-static.BLAS.blas::sblat1.out (REAL Level 1 BLAS routines). It is not related with this PR but this is an issue. I request to re-run the failed job just in case. If the failure persists, I am not sure when we introduced it. I had not noticed it before. Maybe a new version of gfortran on this machine.

The test re-run just fine. All good.

Thanks @rioyu123 for the LAPACKE improvements, great contributions. 🥇

@langou
langou merged commit b564a0b into Reference-LAPACK:master Nov 29, 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.

2 participants