Browse Source

compare against DBLMIN rather than a somewhat arbitrary small number near it

pull/3941/head
Martin Kroeker GitHub 3 years ago
parent
commit
5de271aa69
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lapack/getf2/zgetf2_k.c

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

@@ -106,7 +106,7 @@ blasint CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n, FLOAT *sa,
temp2 = *(b + jp * 2 + 1);

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


Loading…
Cancel
Save