From 82a6ea06e670f601072f5fd62d4cec14d3727ad3 Mon Sep 17 00:00:00 2001
From: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
Date: Thu, 4 Jun 2020 21:34:05 -0400
Subject: [PATCH] use HTML5 img tag to resize images
---
numerical_methods/durand_kerner_roots.cpp | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/numerical_methods/durand_kerner_roots.cpp b/numerical_methods/durand_kerner_roots.cpp
index 70288d2c5..5d9baa932 100644
--- a/numerical_methods/durand_kerner_roots.cpp
+++ b/numerical_methods/durand_kerner_roots.cpp
@@ -18,11 +18,14 @@
* ```
* Sample implementation results to compute approximate roots of the equation
* \f$x^4-1=0\f$:\n
- * 
- *
- * 
+ *
*/
#include
@@ -52,7 +55,7 @@ std::complex poly_function(const std::valarray &coeffs,
int n;
// #ifdef _OPENMP
- // #pragma omp parallel for reduction(+ : real, imag)
+ // #pragma omp target teams distribute reduction(+ : real, imag)
// #endif
for (n = 0; n < coeffs.size(); n++) {
std::complex tmp =
@@ -132,7 +135,6 @@ std::pair durand_kerner_algo(
bool break_loop = false;
while (!check_termination(tol_condition) && iter < INT16_MAX &&
!break_loop) {
- std::complex delta = 0;
tol_condition = 0;
iter++;
break_loop = false;