From d6eb9ca78cc9f72d4fcd9f23eccada2d2a679bb9 Mon Sep 17 00:00:00 2001 From: NAThompson Date: Thu, 27 Feb 2020 06:49:37 -0500 Subject: [PATCH] Remove unused variable [CI SKIP] --- example/daubechies_wavelets/daubechies_plots.cpp | 6 +++--- .../daubechies_wavelets/daubechies_scaling_integer_grid.cpp | 1 - .../detail/daubechies_scaling_integer_grid.hpp | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/example/daubechies_wavelets/daubechies_plots.cpp b/example/daubechies_wavelets/daubechies_plots.cpp index 96e8ce419..7776909a1 100644 --- a/example/daubechies_wavelets/daubechies_plots.cpp +++ b/example/daubechies_wavelets/daubechies_plots.cpp @@ -84,8 +84,8 @@ void plot_condition_number() using std::log; static_assert(p >= 3, "p = 2 is not differentiable, so condition numbers cannot be effectively evaluated."); auto phi = boost::math::daubechies_scaling(); - Real a = 1000*std::numeric_limits::epsilon(); - Real b = phi.support().second - 1000*std::numeric_limits::epsilon(); + Real a = std::sqrt(std::numeric_limits::epsilon()); + Real b = phi.support().second - 1000*std::sqrt(std::numeric_limits::epsilon()); std::string title = "log10 of condition number of function evaluation for Daubechies " + std::to_string(p) + " scaling function."; std::string filename = "daubechies_" + std::to_string(p) + "_scaling_condition_number.svg"; @@ -106,7 +106,7 @@ void plot_condition_number() if (isnan(z)) { // Graphing libraries don't like nan's: - return Real(1); + return Real(1); } return log10(z); }; diff --git a/example/daubechies_wavelets/daubechies_scaling_integer_grid.cpp b/example/daubechies_wavelets/daubechies_scaling_integer_grid.cpp index 1dc55bfe2..703c94b0e 100644 --- a/example/daubechies_wavelets/daubechies_scaling_integer_grid.cpp +++ b/example/daubechies_wavelets/daubechies_scaling_integer_grid.cpp @@ -203,7 +203,6 @@ int main() << " static_assert(sizeof(Real) <= 16, \"Integer grids only computed up to 128 bits of precision.\");\n" << " static_assert(p <= " << p_max << ", \"Integer grids only implemented up to " << p_max << ".\");\n" << " static_assert(p > 1, \"Integer grids only implemented for p >= 2.\");\n" - << " std::array m{};\n" << " return daubechies_scaling_integer_grid_imp::value;\n" << "}\n\n"; diff --git a/include/boost/math/special_functions/detail/daubechies_scaling_integer_grid.hpp b/include/boost/math/special_functions/detail/daubechies_scaling_integer_grid.hpp index 208093342..d10fd232e 100644 --- a/include/boost/math/special_functions/detail/daubechies_scaling_integer_grid.hpp +++ b/include/boost/math/special_functions/detail/daubechies_scaling_integer_grid.hpp @@ -237,7 +237,6 @@ constexpr inline std::array daubechies_scaling_integer_grid() static_assert(sizeof(Real) <= 16, "Integer grids only computed up to 128 bits of precision."); static_assert(p <= 18, "Integer grids only implemented up to 18."); static_assert(p > 1, "Integer grids only implemented for p >= 2."); - std::array m{}; return daubechies_scaling_integer_grid_imp::value; }