Browse Source

Merge pull request #4207 from martin-frbg/issue4174-2

Clarify the comment on the out-of-bounds check in ?GETF2
tags/v0.3.24
Martin Kroeker GitHub 2 years ago
parent
commit
12d8f219d6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lapack/getf2/getf2_k.c
  2. +1
    -1
      lapack/getf2/zgetf2_k.c

+ 1
- 1
lapack/getf2/getf2_k.c View File

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

jp = j + IAMAX_K(m - j, b + j, 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--;
temp1 = *(b + jp);


+ 1
- 1
lapack/getf2/zgetf2_k.c View File

@@ -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--;



Loading…
Cancel
Save