Skip to content

Commit 2da7000

Browse files
committed
Fixed bug in trapezoidal NaN check.
1 parent a7e0724 commit 2da7000

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

LAPACKE/utils/lapacke_ctz_nancheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ lapack_logical LAPACKE_ctz_nancheck( int matrix_layout, char direct, char uplo,
9595
unit = LAPACKE_lsame( diag, 'u' );
9696

9797
if( ( !colmaj && ( matrix_layout != LAPACK_ROW_MAJOR ) ) ||
98-
( !front && !LAPACKE_lsame( uplo, 'b' ) ) ||
98+
( !front && !LAPACKE_lsame( direct, 'b' ) ) ||
9999
( !lower && !LAPACKE_lsame( uplo, 'u' ) ) ||
100100
( !unit && !LAPACKE_lsame( diag, 'n' ) ) ) {
101101
/* Just exit if any of input parameters are wrong */

LAPACKE/utils/lapacke_dtz_nancheck.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ lapack_logical LAPACKE_dtz_nancheck( int matrix_layout, char direct, char uplo,
9494
unit = LAPACKE_lsame( diag, 'u' );
9595

9696
if( ( !colmaj && ( matrix_layout != LAPACK_ROW_MAJOR ) ) ||
97-
( !front && !LAPACKE_lsame( uplo, 'b' ) ) ||
97+
( !front && !LAPACKE_lsame( direct, 'b' ) ) ||
9898
( !lower && !LAPACKE_lsame( uplo, 'u' ) ) ||
9999
( !unit && !LAPACKE_lsame( diag, 'n' ) ) ) {
100100
/* Just exit if any of input parameters are wrong */
@@ -132,7 +132,7 @@ lapack_logical LAPACKE_dtz_nancheck( int matrix_layout, char direct, char uplo,
132132
/* Check rectangular part */
133133
if( rect_offset >= 0 ) {
134134
if( LAPACKE_dge_nancheck( matrix_layout, rect_m, rect_n,
135-
&a[rect_offset], lda) ) {
135+
&a[rect_offset], lda ) ) {
136136
return (lapack_logical) 1;
137137
}
138138
}

LAPACKE/utils/lapacke_stz_nancheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ lapack_logical LAPACKE_stz_nancheck( int matrix_layout, char direct, char uplo,
9494
unit = LAPACKE_lsame( diag, 'u' );
9595

9696
if( ( !colmaj && ( matrix_layout != LAPACK_ROW_MAJOR ) ) ||
97-
( !front && !LAPACKE_lsame( uplo, 'b' ) ) ||
97+
( !front && !LAPACKE_lsame( direct, 'b' ) ) ||
9898
( !lower && !LAPACKE_lsame( uplo, 'u' ) ) ||
9999
( !unit && !LAPACKE_lsame( diag, 'n' ) ) ) {
100100
/* Just exit if any of input parameters are wrong */

LAPACKE/utils/lapacke_ztz_nancheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ lapack_logical LAPACKE_ztz_nancheck( int matrix_layout, char direct, char uplo,
9595
unit = LAPACKE_lsame( diag, 'u' );
9696

9797
if( ( !colmaj && ( matrix_layout != LAPACK_ROW_MAJOR ) ) ||
98-
( !front && !LAPACKE_lsame( uplo, 'b' ) ) ||
98+
( !front && !LAPACKE_lsame( direct, 'b' ) ) ||
9999
( !lower && !LAPACKE_lsame( uplo, 'u' ) ) ||
100100
( !unit && !LAPACKE_lsame( diag, 'n' ) ) ) {
101101
/* Just exit if any of input parameters are wrong */

0 commit comments

Comments
 (0)