Skip to content

Commit 22d305e

Browse files
committed
fix dtrtrs_ and ztrtrs_ to accept case-insensitive parameters uplo and diag
Changes to be committed: modified: interface/lapack/trtrs.c modified: interface/lapack/ztrtrs.c
1 parent a87713f commit 22d305e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

interface/lapack/trtrs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ int NAME(char *UPLO, char* TRANS, char* DIAG, blasint *N, blasint *NRHS, FLOAT *
9595
if (trans_arg == 'R') trans = 0;
9696
if (trans_arg == 'C') trans = 1;
9797

98+
TOUPPER(uplo_arg);
9899
uplo = -1;
99100
if (uplo_arg == 'U') uplo = 0;
100101
if (uplo_arg == 'L') uplo = 1;
101102

103+
TOUPPER(diag_arg);
102104
diag = -1;
103105
if (diag_arg == 'U') diag = 0;
104106
if (diag_arg == 'N') diag = 1;

interface/lapack/ztrtrs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ int NAME(char *UPLO, char* TRANS, char* DIAG, blasint *N, blasint *NRHS, FLOAT *
9595
if (trans_arg == 'R') trans = 2;
9696
if (trans_arg == 'C') trans = 3;
9797

98+
TOUPPER(uplo_arg);
9899
uplo = -1;
99100
if (uplo_arg == 'U') uplo = 0;
100101
if (uplo_arg == 'L') uplo = 1;
101102

103+
TOUPPER(diag_arg);
102104
diag = -1;
103105
if (diag_arg == 'U') diag = 0;
104106
if (diag_arg == 'N') diag = 1;

0 commit comments

Comments
 (0)