Skip to content

Commit 292c6d6

Browse files
committed
Quick and dirty bug fix.
Bug report and bug fix from Dan Kortschak. See: http://icl.cs.utk.edu/lapack-forum/viewtopic.php?t=4810 OpenMathLib/OpenBLAS#642 This is a quick bug fix, this only checks the triangular part of the trapezoid, the rectangular part is not checked. Another commit should follow up soon.
1 parent c2959d1 commit 292c6d6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

LAPACKE/src/lapacke_clantr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ float LAPACKE_clantr( int matrix_layout, char norm, char uplo, char diag,
4646
}
4747
#ifndef LAPACK_DISABLE_NAN_CHECK
4848
/* Optionally check input matrices for NaNs */
49-
if( LAPACKE_ctr_nancheck( matrix_layout, uplo, diag, n, a, lda ) ) {
49+
if( LAPACKE_ctr_nancheck( matrix_layout, uplo, diag, MIN(m,n), a, lda ) ) {
5050
return -7;
5151
}
5252
#endif

LAPACKE/src/lapacke_dlantr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ double LAPACKE_dlantr( int matrix_layout, char norm, char uplo, char diag,
4646
}
4747
#ifndef LAPACK_DISABLE_NAN_CHECK
4848
/* Optionally check input matrices for NaNs */
49-
if( LAPACKE_dtr_nancheck( matrix_layout, uplo, diag, n, a, lda ) ) {
49+
if( LAPACKE_dtr_nancheck( matrix_layout, uplo, diag, MIN(m,n), a, lda ) ) {
5050
return -7;
5151
}
5252
#endif

LAPACKE/src/lapacke_slantr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ float LAPACKE_slantr( int matrix_layout, char norm, char uplo, char diag,
4646
}
4747
#ifndef LAPACK_DISABLE_NAN_CHECK
4848
/* Optionally check input matrices for NaNs */
49-
if( LAPACKE_str_nancheck( matrix_layout, uplo, diag, n, a, lda ) ) {
49+
if( LAPACKE_str_nancheck( matrix_layout, uplo, diag, MIN(m,n), a, lda ) ) {
5050
return -7;
5151
}
5252
#endif

LAPACKE/src/lapacke_zlantr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ double LAPACKE_zlantr( int matrix_layout, char norm, char uplo, char diag,
4646
}
4747
#ifndef LAPACK_DISABLE_NAN_CHECK
4848
/* Optionally check input matrices for NaNs */
49-
if( LAPACKE_ztr_nancheck( matrix_layout, uplo, diag, n, a, lda ) ) {
49+
if( LAPACKE_ztr_nancheck( matrix_layout, uplo, diag, MIN(m,n), a, lda ) ) {
5050
return -7;
5151
}
5252
#endif

0 commit comments

Comments
 (0)