Skip to content

Commit 22a402b

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lapack/getf2/getf2_k.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
9595
GEMV_N(m - j, j, 0, dm1, a + j, lda, b, 1, b + j, 1, sb);
9696

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

0 commit comments

Comments
 (0)