Update zscal.c

This commit is contained in:
Martin Kroeker 2024-07-31 16:22:06 +02:00 committed by GitHub
parent 18272263ad
commit 0dea52ecbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -356,7 +356,10 @@ int CNAME(BLASLONG n, BLASLONG dummy0, BLASLONG dummy1, FLOAT da_r, FLOAT da_i,
while (j < n) {
x[i] = res;
x[i + 1] = res;
if (!isinf(x[i + 1]))
x[i + 1] = res;
else
x[i + 1] = NAN;
i += 2;
j++;