Skip to content

Commit f4e5177

Browse files
authored
fix dimension used in nancheck (Reference-LAPACK PR 1135)
1 parent 2a6beac commit f4e5177

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lapack-netlib/LAPACKE/src/lapacke_zunmlq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ lapack_int LAPACKE_zunmlq( int matrix_layout, char side, char trans,
4848
}
4949
#ifndef LAPACK_DISABLE_NAN_CHECK
5050
if( LAPACKE_get_nancheck() ) {
51+
lapack_int r;
5152
/* Optionally check input matrices for NaNs */
52-
if( LAPACKE_zge_nancheck( matrix_layout, k, m, a, lda ) ) {
53+
r = LAPACKE_lsame( side, 'l' ) ? m : n;
54+
if( LAPACKE_zge_nancheck( matrix_layout, k, r, a, lda ) ) {
5355
return -7;
5456
}
5557
if( LAPACKE_zge_nancheck( matrix_layout, m, n, c, ldc ) ) {

0 commit comments

Comments
 (0)