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

This commit is contained in:
Martin Kroeker 2023-03-15 21:16:06 +01:00 committed by GitHub
parent 6052fd97a4
commit 5de271aa69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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); 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 ((fabs(temp1) >= DBL_MIN) && (fabs(temp2) >= DBL_MIN)) {
if (jp != j) { if (jp != j) {
SWAP_K(j + 1, 0, 0, ZERO, ZERO, a + j * 2, lda, SWAP_K(j + 1, 0, 0, ZERO, ZERO, a + j * 2, lda,