Handle NAN in input

This commit is contained in:
Martin Kroeker 2024-01-07 20:26:16 +01:00 committed by GitHub
parent c9df62e883
commit acf17a825d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -63,8 +63,11 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da_r,FLOAT da_i, F
x[ip+1] = da_r * x[ip+1] + da_i * x[ip] ;
}
}
x[ip] = temp;
if ( da_r != da_r )
x[ip] = da_r;
else
x[ip] = temp;
ip += inc_x2;
}