Skip to content

TESTING/EIG: use named ONE constants in several error-exit tests#1230

Merged
langou merged 2 commits intoReference-LAPACK:masterfrom
nakatamaho:cleanup/eig-errbd-errhs-constants
Apr 11, 2026
Merged

TESTING/EIG: use named ONE constants in several error-exit tests#1230
langou merged 2 commits intoReference-LAPACK:masterfrom
nakatamaho:cleanup/eig-errbd-errhs-constants

Conversation

@nakatamaho
Copy link
Copy Markdown
Contributor

Summary

This PR replaces hard-coded 1. / 1.D0 literals with the named
constant ONE in several TESTING/EIG error-exit test routines.

Where needed, it also adds missing ONE parameter declarations so
the setup code follows the surrounding named-constant style.

No functional change is intended.

Details

Several TESTING/EIG error-exit tests initialize matrices with
expressions such as:

  • 1. / REAL(I+J)
  • 1.D0 / DBLE(I+J)

This change rewrites those initializations to use ONE instead.
The goal is simply to make constant usage more consistent across
the test sources and to reduce hard-coded numeric literals in the
setup code.

Testing

  • Not run (cleanup only)

Replace hard-coded 1./1.D0 literals with the named constant ONE
in several TESTING/EIG error-exit test routines.

Add missing ONE parameter declarations where needed so the test
setup code follows the surrounding named-constant style.
@langou langou merged commit ff3f982 into Reference-LAPACK:master Apr 11, 2026
12 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