Skip to content

SRC: use LSAME for NORM checks in condition routines#1242

Open
nakatamaho wants to merge 7 commits intoReference-LAPACK:masterfrom
nakatamaho:cleanup/con-lsame-norm
Open

SRC: use LSAME for NORM checks in condition routines#1242
nakatamaho wants to merge 7 commits intoReference-LAPACK:masterfrom
nakatamaho:cleanup/con-lsame-norm

Conversation

@nakatamaho
Copy link
Copy Markdown
Contributor

This PR updates the condition estimation routines to use LSAME for checking
the one-norm NORM option.

The affected routines already use LSAME to accept the equivalent 'O' option:

  ONENRM = NORM.EQ.'1' .OR. LSAME( NORM, 'O' )

This PR makes the handling consistent by replacing the direct character
comparison with LSAME:

  ONENRM = LSAME( NORM, '1' ) .OR. LSAME( NORM, 'O' )

This is a cleanup-only change. It does not change the accepted NORM options
or the numerical behavior of the routines.

…it tests

Reorder ZERO and ONE declarations and PARAMETER definitions
for consistency in the TESTING/EIG error-exit test sources.

No functional change intended.
Replace hard-coded floating-point constants with named constants in selected TESTING/EIG error-exit tests. This keeps the test setup code consistent with surrounding LAPACK test style.
Replace direct case-sensitive UPLO character comparisons in CPTTRS and ZPTTRS with LSAME. This matches the surrounding LAPACK convention for case-insensitive option checks.
Replace direct case-sensitive TRANS character comparisons in the GTTRS routines with LSAME. This keeps option handling consistent with the surrounding LAPACK convention for case-insensitive checks.
Replace direct UPLO character comparisons in the LALSD routines with LSAME. This keeps option handling consistent with the surrounding LAPACK convention for case-insensitive checks.
Replace direct UPLO character comparisons in the LATSP and LATSY test helpers with LSAME. This keeps option handling consistent with the LAPACK convention for case-insensitive checks.
Replace direct NORM character comparisons for the one-norm option with LSAME in the condition estimation routines. This keeps the '1' checks consistent with the existing LSAME handling for the equivalent 'O' option.
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