]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/math/special_functions/daubechies_scaling.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / math / special_functions / daubechies_scaling.hpp
index e9cf678723be92bafd8784dd262572e97bc17398..6493060ba6806399c5144db6eb1a6de69cb0485c 100644 (file)
@@ -13,7 +13,6 @@
 #include <thread>
 #include <future>
 #include <iostream>
-#include <boost/math/constants/constants.hpp>
 #include <boost/math/special_functions/detail/daubechies_scaling_integer_grid.hpp>
 #include <boost/math/filters/daubechies.hpp>
 #include <boost/math/interpolators/detail/cubic_hermite_detail.hpp>
@@ -26,8 +25,9 @@ template<class Real, int p, int order>
 std::vector<Real> daubechies_scaling_dyadic_grid(int64_t j_max)
 {
     using std::isnan;
+    using std::sqrt;
     auto c = boost::math::filters::daubechies_scaling_filter<Real, p>();
-    Real scale = boost::math::constants::root_two<Real>()*(1 << order);
+    Real scale = sqrt(static_cast<Real>(2))*(1 << order);
     for (auto & x : c)
     {
         x *= scale;