Skip to content

TESTING/LIN: use ZERO/ONE/CZERO in LQ/QL/QR/RQ error-exit tests#1229

Open
nakatamaho wants to merge 1 commit intoReference-LAPACK:masterfrom
nakatamaho:cleanup/errrlq-constants
Open

TESTING/LIN: use ZERO/ONE/CZERO in LQ/QL/QR/RQ error-exit tests#1229
nakatamaho wants to merge 1 commit intoReference-LAPACK:masterfrom
nakatamaho:cleanup/errrlq-constants

Conversation

@nakatamaho
Copy link
Copy Markdown
Contributor

Summary

This PR replaces hard-coded 0/1 literals in the TESTING/LIN
error-exit drivers for the LQ/QL/QR/RQ families with typed named
constants.

For the real variants, it introduces ZERO and ONE.
For the complex variants, it also introduces CZERO and uses it for
complex zero initialization.

This is a mechanical cleanup only; no functional change is intended.

Scope

The change is limited to the following TESTING/LIN error-exit drivers:

  • {s,d,c,z}err{lq,lqt,lqtp,ql,qr,qrt,qrtp,rq}

What changed

  • added typed ZERO / ONE parameter constants
  • replaced scattered hard-coded 0 / 1 literals in test-data setup
  • added CZERO in the complex variants
  • replaced complex zero initializers with CZERO for consistency

Why

These files used a mix of literal forms such as 0., 0.0, 0.D0,
1., 1.E0, and 1.D0, plus ad hoc complex zero initializers.

Using typed named constants makes the initialization code more uniform
and easier to maintain, without changing behavior.

Testing

Not run.
This is a mechanical source cleanup in the error-exit test drivers only.

Introduce typed ZERO/ONE parameter constants in the
{s,d,c,z}err{lq,lqt,lqtp,ql,qr,qrt,qrtp,rq} drivers and replace
hard-coded 0/1 literals in test-data initialization.

For the complex variants, add CZERO and use it for complex zero
initialization so the cleanup is type-consistent throughout.

Mechanical cleanup only; no functional change intended.
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.

1 participant