Skip to content

cleanup: normalize named constants in LAPACK *equb routines#1227

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

cleanup: normalize named constants in LAPACK *equb routines#1227
nakatamaho wants to merge 1 commit intoReference-LAPACK:masterfrom
nakatamaho:cleanup/qub-constants

Conversation

@nakatamaho
Copy link
Copy Markdown
Contributor

Summary

This PR continues the named-constant cleanup in LAPACK by normalizing
constant declarations and replacing hard-coded numeric literals in the
affected *equb routines.

In particular, it:

  • normalizes parameter declaration order such as ZERO, ONE
  • introduces HALF and TWO where needed
  • replaces hard-coded 0.0, 0.5, 1.0, and 2.0 literals with
    the corresponding named constants in routine bodies

The updates are applied consistently across the affected real/complex
and single/double-precision *equb variants.

No functional change is intended.

Rationale

These routines already use named constants, but the usage was not fully
consistent across variants. Normalizing the declarations and using the
same named constants in expressions makes the source easier to compare,
review, and maintain across typed implementations.

Affected routines

cgbequb, cgeequb, cheequb, cpoequb, csyequb,
dgbequb, dgeequb, dpoequb, dsyequb,
sgbequb, sgeequb, spoequb, ssyequb,
zgbequb, zgeequb, zheequb, zpoequb, zsyequb.

…b routines

Continue the named-constant cleanup by replacing hard-coded
0.0/0.5/1.0/2.0 literals with ZERO/HALF/ONE/TWO where
appropriate, and by normalizing parameter declaration order
across the affected *equb routines.

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