Skip to content

Accept a dummy array for the unused side of row-major TREVC - #1524

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

langou merged 4 commits into
Reference-LAPACK:masterfrom
rioyu123:codex/lapacke-trevc-one-sided

Conversation

@rioyu123

Copy link
Copy Markdown
Contributor

Description

TREVC callers requesting only left or only right eigenvectors can pass a one-element dummy array for the other side. With a 2×2 matrix and a leading dimension of one for that array, the column-major call succeeds. The row-major wrapper returns -9 for SIDE='R' or -11 for SIDE='L'.

The row-major wrappers now check the requested output against MM and allow a unit leading dimension for the unused side.

The regression requests each side of diag(1, 3) in both layouts and checks the eigenvector count and which eigenvector entries are nonzero. 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.79%. Comparing base (b564a0b) to head (bb08074).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1524      +/-   ##
==========================================
+ Coverage   70.74%   70.79%   +0.04%     
==========================================
  Files        6243     6243              
  Lines      501696   501708      +12     
  Branches    23516    23516              
==========================================
+ Hits       354930   355168     +238     
+ Misses     145701   145413     -288     
- Partials     1065     1127      +62     
Components Coverage Δ
BLAS 99.73% <ø> (ø)
CBLAS 96.95% <ø> (ø)
LAPACK 83.78% <ø> (+<0.01%) ⬆️
LAPACKE 4.93% <100.00%> (+0.28%) ⬆️
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_ctrevc_work.c 67.14% <100.00%> (+67.14%) ⬆️
LAPACKE/src/lapacke_dtrevc_work.c 66.66% <100.00%> (+66.66%) ⬆️
LAPACKE/src/lapacke_strevc_work.c 66.66% <100.00%> (+66.66%) ⬆️
LAPACKE/src/lapacke_ztrevc_work.c 67.14% <100.00%> (+67.14%) ⬆️

... and 8 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 b564a0b...bb08074. Read the comment docs.

langou
langou previously approved these changes Nov 29, 2026
@langou
langou merged commit fe868c0 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