1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2025-02-16 17:13:57 +00:00

Use +=, since it exists

This commit is contained in:
Stefano Pigozzi 2022-11-30 01:19:00 +01:00
parent 1568ab6525
commit c44241a15d

View file

@ -95,7 +95,7 @@ __host__ static void kernel_atax(DATA_TYPE** A, DATA_TYPE* X, DATA_TYPE* Y)
for (unsigned int y = 0; y < NY; y++)
{
Y[y] = Y[y] + A[x][y] * tmp;
Y[y] += A[x][y] * tmp;
}
}
}