mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
removed openmp
This commit is contained in:
parent
8e2ad2e1ef
commit
8aaf345748
@ -5,9 +5,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <complex.h>
|
#include <complex.h>
|
||||||
#ifdef _OPENMP
|
|
||||||
#include <omp.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ACCURACY 1e-10
|
#define ACCURACY 1e-10
|
||||||
|
|
||||||
@ -19,10 +16,6 @@ double complex function(double *coeffs, unsigned int degree, double complex x)
|
|||||||
double complex out = 0.;
|
double complex out = 0.;
|
||||||
unsigned int n;
|
unsigned int n;
|
||||||
|
|
||||||
#ifdef _OPENMP
|
|
||||||
#pragma omp parallel for reduction(+ \
|
|
||||||
: out)
|
|
||||||
#endif
|
|
||||||
for (n = 0; n < degree; n++)
|
for (n = 0; n < degree; n++)
|
||||||
out += coeffs[n] * cpow(x, degree - n - 1);
|
out += coeffs[n] * cpow(x, degree - n - 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user