Task 7 was corrected

This commit is contained in:
AZEN-SGG 2025-03-26 23:07:48 +03:00
parent 87e1eb75d5
commit 863948011f
14 changed files with 425 additions and 1 deletions

View file

@ -18,7 +18,7 @@ void t7_solve(const double * restrict A, double * restrict x_0, const double * r
#pragma omp simd reduction(+:sum)
for (int j = 0; j < n; ++j)
sum += A[i*n + j] * x[j];
sum += A[i*n + j] * x_0[j];
x[i] = x_0[i] + ((b[i] - sum) / A[i*n + i]) * t;
}