TESTING/LIN: use LSAME for UPLO checks in latsp and latsy

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.
This commit is contained in:
NAKATA Maho
2026-04-14 08:24:10 +09:00
parent bb2bda9ed3
commit c537b6b5d3
4 changed files with 12 additions and 8 deletions
+3 -2
View File
@@ -109,7 +109,8 @@
* ..
* .. External Functions ..
COMPLEX CLARND
EXTERNAL CLARND
LOGICAL LSAME
EXTERNAL CLARND, LSAME
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, SQRT
@@ -130,7 +131,7 @@
*
* UPLO = 'U': Upper triangular storage
*
IF( UPLO.EQ.'U' ) THEN
IF( LSAME( UPLO, 'U' ) ) THEN
N5 = N / 5
N5 = N - 5*N5 + 1
*
+3 -2
View File
@@ -114,7 +114,8 @@
* ..
* .. External Functions ..
COMPLEX CLARND
EXTERNAL CLARND
LOGICAL LSAME
EXTERNAL CLARND, LSAME
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, SQRT
@@ -129,7 +130,7 @@
*
* UPLO = 'U': Upper triangular storage
*
IF( UPLO.EQ.'U' ) THEN
IF( LSAME( UPLO, 'U' ) ) THEN
*
* Fill the upper triangle of the matrix with zeros.
*
+3 -2
View File
@@ -109,7 +109,8 @@
* ..
* .. External Functions ..
COMPLEX*16 ZLARND
EXTERNAL ZLARND
LOGICAL LSAME
EXTERNAL ZLARND, LSAME
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, SQRT
@@ -130,7 +131,7 @@
*
* UPLO = 'U': Upper triangular storage
*
IF( UPLO.EQ.'U' ) THEN
IF( LSAME( UPLO, 'U' ) ) THEN
N5 = N / 5
N5 = N - 5*N5 + 1
*
+3 -2
View File
@@ -114,7 +114,8 @@
* ..
* .. External Functions ..
COMPLEX*16 ZLARND
EXTERNAL ZLARND
LOGICAL LSAME
EXTERNAL ZLARND, LSAME
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, SQRT
@@ -129,7 +130,7 @@
*
* UPLO = 'U': Upper triangular storage
*
IF( UPLO.EQ.'U' ) THEN
IF( LSAME( UPLO, 'U' ) ) THEN
*
* Fill the upper triangle of the matrix with zeros.
*