Skip to content

Commit 3b6050a

Browse files
authored
clarify the comment on the out-of-bounds check from #723
1 parent 22a402b commit 3b6050a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lapack/getf2/zgetf2_k.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
9999
GEMV_N(m - j, j, 0, dm1, ZERO, a + j * 2, lda, b, 1, b + j * 2, 1, sb);
100100

101101
jp = j + IAMAX_K(m - j, b + j * 2, 1);
102-
if (jp>m) jp = m; //avoid out of boundary
102+
if (jp>m) jp = m; //avoid out of boundary when the iamax kernel does not cope with NaN in input, see gh issue 723
103103
ipiv[j + offset] = jp + offset;
104104
jp--;
105105

0 commit comments

Comments
 (0)