Skip to content

{s/c/d/z}larf{/1f/1l}: fix negative increment vector handling - #1315

Merged
langou merged 1 commit into
Reference-LAPACK:masterfrom
sameer-amd-in:issue1314
Jun 24, 2026
Merged

langou merged 1 commit into
Reference-LAPACK:masterfrom
sameer-amd-in:issue1314

Conversation

@sameer-amd-in

Copy link
Copy Markdown
Contributor

Added correct handling of input vector V with negative increments.

Closes: #1314

langou
langou previously approved these changes Jun 21, 2026
@langou

langou commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Looking at the error log, I think some lines are too long and when we had _64 to the routine names this get over the 72 character limit, so some of the lines need to be less long.

Handle negative increment values in vector offsetting.

Change-Id: I2a0993e1ec22f8029d49d30d18be0152db480ded
@sameer-amd-in

Copy link
Copy Markdown
Contributor Author

Thanks @langou for the valuable insight. I updated the code not to cross (72 - 3) characters in a line.

@langou
langou merged commit 98e5d7a into Reference-LAPACK:master Jun 24, 2026
13 checks passed
ilayn added a commit to ilayn/semicolon-lapack that referenced this pull request Oct 25, 2026
…LARF, xLAED0 and xLAUU2 [skip docs] (#40)

[skip docs]

- Symmetric-indefinite factorizations divide each 2x2 pivot entry by d21
  before scaling by T, so a subnormal or near-overflow d21 no longer gives
  Inf/NaN or a false INFO > 0. xCHKSY (real) gains matrix type 11.
  Reference-LAPACK/lapack#1377
- xLASYF/xLAHEF copy the updated zero-pivot column back into A. xCHKSY
  and xCHKHE gain the zero-pivot cases.
  Reference-LAPACK/lapack#1433
  Reference-LAPACK/lapack#1432
- xLARF/xLARF1F/xLARF1L handle a negative INCV, return early on an empty
  C, and DLARF1L/SLARF1L with SIDE = 'R' scale column LASTV. New
  test_?larf_incv.
  Reference-LAPACK/lapack#1315
  Reference-LAPACK/lapack#1314
  Reference-LAPACK/lapack#1435
  Reference-LAPACK/lapack#1430
- ZLAED0/CLAED0 no longer write into rows N+1:LDZ of the caller's Z.
  xCHKST (complex) gains the LDZ = N+1 padding check.
  Reference-LAPACK/lapack#1406
- ZLAUU2/CLAUU2, and through them ZLAUUM/CLAUUM, use the complex diagonal.
  New test_?lauum_cdiag.
  Reference-LAPACK/lapack#1402
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.

Incorrect handling of negative vector increments in xLARF, xLARF1F and xLARF1L APIs

2 participants