]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid std::pow in BarycentricPolynomials 16855/head
authorMartin Kronbichler <martin.kronbichler@rub.de>
Fri, 5 Apr 2024 10:31:30 +0000 (12:31 +0200)
committerMartin Kronbichler <martin.kronbichler@rub.de>
Fri, 5 Apr 2024 10:31:30 +0000 (12:31 +0200)
include/deal.II/base/polynomials_barycentric.h

index ef63e24bfb318a80cfd7f8198a942be6a039ee9e..c7ea46d40679fa370831398a50965a8dfc6cbaba 100644 (file)
@@ -687,7 +687,7 @@ BarycentricPolynomial<dim, Number>::value(const Point<dim> &point) const
 
       auto temp = Number(1);
       for (unsigned int d = 0; d < dim + 1; ++d)
-        temp *= std::pow(b_point[d], indices[d]);
+        temp *= Utilities::pow(b_point[d], indices[d]);
       result += coef * temp;
     }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.