Skip to content

Commit c537b6b

Browse files
committed
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.
1 parent bb2bda9 commit c537b6b

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

TESTING/LIN/clatsp.f

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ SUBROUTINE CLATSP( UPLO, N, X, ISEED )
109109
* ..
110110
* .. External Functions ..
111111
COMPLEX CLARND
112-
EXTERNAL CLARND
112+
LOGICAL LSAME
113+
EXTERNAL CLARND, LSAME
113114
* ..
114115
* .. Intrinsic Functions ..
115116
INTRINSIC ABS, SQRT
@@ -130,7 +131,7 @@ SUBROUTINE CLATSP( UPLO, N, X, ISEED )
130131
*
131132
* UPLO = 'U': Upper triangular storage
132133
*
133-
IF( UPLO.EQ.'U' ) THEN
134+
IF( LSAME( UPLO, 'U' ) ) THEN
134135
N5 = N / 5
135136
N5 = N - 5*N5 + 1
136137
*

TESTING/LIN/clatsy.f

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ SUBROUTINE CLATSY( UPLO, N, X, LDX, ISEED )
114114
* ..
115115
* .. External Functions ..
116116
COMPLEX CLARND
117-
EXTERNAL CLARND
117+
LOGICAL LSAME
118+
EXTERNAL CLARND, LSAME
118119
* ..
119120
* .. Intrinsic Functions ..
120121
INTRINSIC ABS, SQRT
@@ -129,7 +130,7 @@ SUBROUTINE CLATSY( UPLO, N, X, LDX, ISEED )
129130
*
130131
* UPLO = 'U': Upper triangular storage
131132
*
132-
IF( UPLO.EQ.'U' ) THEN
133+
IF( LSAME( UPLO, 'U' ) ) THEN
133134
*
134135
* Fill the upper triangle of the matrix with zeros.
135136
*

TESTING/LIN/zlatsp.f

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ SUBROUTINE ZLATSP( UPLO, N, X, ISEED )
109109
* ..
110110
* .. External Functions ..
111111
COMPLEX*16 ZLARND
112-
EXTERNAL ZLARND
112+
LOGICAL LSAME
113+
EXTERNAL ZLARND, LSAME
113114
* ..
114115
* .. Intrinsic Functions ..
115116
INTRINSIC ABS, SQRT
@@ -130,7 +131,7 @@ SUBROUTINE ZLATSP( UPLO, N, X, ISEED )
130131
*
131132
* UPLO = 'U': Upper triangular storage
132133
*
133-
IF( UPLO.EQ.'U' ) THEN
134+
IF( LSAME( UPLO, 'U' ) ) THEN
134135
N5 = N / 5
135136
N5 = N - 5*N5 + 1
136137
*

TESTING/LIN/zlatsy.f

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ SUBROUTINE ZLATSY( UPLO, N, X, LDX, ISEED )
114114
* ..
115115
* .. External Functions ..
116116
COMPLEX*16 ZLARND
117-
EXTERNAL ZLARND
117+
LOGICAL LSAME
118+
EXTERNAL ZLARND, LSAME
118119
* ..
119120
* .. Intrinsic Functions ..
120121
INTRINSIC ABS, SQRT
@@ -129,7 +130,7 @@ SUBROUTINE ZLATSY( UPLO, N, X, LDX, ISEED )
129130
*
130131
* UPLO = 'U': Upper triangular storage
131132
*
132-
IF( UPLO.EQ.'U' ) THEN
133+
IF( LSAME( UPLO, 'U' ) ) THEN
133134
*
134135
* Fill the upper triangle of the matrix with zeros.
135136
*

0 commit comments

Comments
 (0)