Task 3 is ok!
This commit is contained in:
parent
3eb349f81c
commit
335d164b10
7 changed files with 41 additions and 19 deletions
|
@ -16,8 +16,6 @@ void init_vec_b(const double * restrict a, double * restrict b, int n)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* OLD VERSION
|
||||
void matvec_mul(int n, const double * restrict A, const double * restrict x, double * restrict x_k)
|
||||
{
|
||||
#pragma omp parallel for
|
||||
|
@ -30,9 +28,4 @@ void matvec_mul(int n, const double * restrict A, const double * restrict x, dou
|
|||
x_k[i] = sum;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
void matvec_mul(int n, const double * restrict A, const double * restrict x, double * restrict x_k)
|
||||
{
|
||||
cblas_dgemv(CblasRowMajor, CblasdNoTrans, n, n, 1.0, A, n, x, 1, 0.0, x_k, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue