Browse Source

Refs #723. Avoid out of boundary for getf2.

tags/v0.2.16.rc1
Zhang Xianyi 10 years ago
parent
commit
13f0f8c10e
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      lapack/getf2/getf2_k.c
  2. +1
    -0
      lapack/getf2/zgetf2_k.c

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

@@ -94,6 +94,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
ipiv[j + offset] = jp + offset;
jp--;
temp1 = *(b + jp);


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

@@ -98,6 +98,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
ipiv[j + offset] = jp + offset;
jp--;



Loading…
Cancel
Save