Browse Source

avoid overflow in division

tags/v0.3.22^2
Martin Kroeker GitHub 2 years ago
parent
commit
a39ced0551
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      lapack/getf2/zgetf2_k.c

+ 3
- 2
lapack/getf2/zgetf2_k.c View File

@@ -105,8 +105,9 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
temp1 = *(b + jp * 2 + 0);
temp2 = *(b + jp * 2 + 1);

if ((temp1 != ZERO) || (temp2 != ZERO)) {

// if ((temp1 != ZERO) || (temp2 != ZERO)) {
if ((fabs(temp1) > 1.e-305) || (fabs(temp2) > 1.e-305)) {
if (jp != j) {
SWAP_K(j + 1, 0, 0, ZERO, ZERO, a + j * 2, lda,
a + jp * 2, lda, NULL, 0);


Loading…
Cancel
Save