Skip to content

Commit

Permalink
clarify the comment on the out-of-bounds check from OpenMathLib#723
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Aug 26, 2023
1 parent 22a402b commit 3b6050a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lapack/getf2/zgetf2_k.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
GEMV_N(m - j, j, 0, dm1, ZERO, a + j * 2, lda, b, 1, b + j * 2, 1, sb);

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

Expand Down

0 comments on commit 3b6050a

Please sign in to comment.