From 008c922690cdb83d70b74b8726b257e96f271660 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Sun, 30 Oct 2022 12:26:52 -0400 Subject: [PATCH] Junk removal Removal of junk headers, typos, or mistakenly duplicated keywords --- example/color_maps_sf_example.cpp | 2 +- include/boost/math/ccmath/abs.hpp | 2 +- include/boost/math/complex/details.hpp | 1 - include/boost/math/distributions/poisson.hpp | 1 - .../interpolators/detail/cardinal_cubic_b_spline_detail.hpp | 2 +- include/boost/math/quadrature/detail/sinh_sinh_detail.hpp | 2 +- include/boost/math/special_functions/erf.hpp | 4 ---- include/boost/math/special_functions/gamma.hpp | 2 +- include/boost/math/special_functions/nonfinite_num_facets.hpp | 2 -- include/boost/math/tools/config.hpp | 3 --- include/boost/math/tools/precision.hpp | 2 +- tools/igamma_temme_large_coef.cpp | 1 - 12 files changed, 6 insertions(+), 18 deletions(-) diff --git a/example/color_maps_sf_example.cpp b/example/color_maps_sf_example.cpp index f688bd3432..a75b1d69cb 100644 --- a/example/color_maps_sf_example.cpp +++ b/example/color_maps_sf_example.cpp @@ -580,7 +580,7 @@ int main(int argc, char** argv) if (debug) { for (int64_t i = image_width / 2; i < image_width; ++i) - points[image_width * (image_height - 1) + i] = i & 1 ? 1 : 0; + points[image_width * (image_height - 1) + i] = i & 1; } // diff --git a/include/boost/math/ccmath/abs.hpp b/include/boost/math/ccmath/abs.hpp index 8e9317c517..2505cb75ab 100644 --- a/include/boost/math/ccmath/abs.hpp +++ b/include/boost/math/ccmath/abs.hpp @@ -56,7 +56,7 @@ inline constexpr T abs(T x) noexcept } else { - static_assert(sizeof(T) == 0, "Taking the absolute value of an unsigned value not covertible to int is UB."); + static_assert(sizeof(T) == 0, "Taking the absolute value of an unsigned value not convertible to int is UB."); return T(0); // Unreachable, but suppresses warnings } } diff --git a/include/boost/math/complex/details.hpp b/include/boost/math/complex/details.hpp index f439085107..0a3d35347d 100644 --- a/include/boost/math/complex/details.hpp +++ b/include/boost/math/complex/details.hpp @@ -16,7 +16,6 @@ #include #include #include -#include #include namespace boost{ namespace math{ namespace detail{ diff --git a/include/boost/math/distributions/poisson.hpp b/include/boost/math/distributions/poisson.hpp index 5507360e82..46894541e5 100644 --- a/include/boost/math/distributions/poisson.hpp +++ b/include/boost/math/distributions/poisson.hpp @@ -44,7 +44,6 @@ #include // isnan. #include // factorials. #include // for root finding. -#include #include #include diff --git a/include/boost/math/interpolators/detail/cardinal_cubic_b_spline_detail.hpp b/include/boost/math/interpolators/detail/cardinal_cubic_b_spline_detail.hpp index 7a4cff0d4b..22491a70a4 100644 --- a/include/boost/math/interpolators/detail/cardinal_cubic_b_spline_detail.hpp +++ b/include/boost/math/interpolators/detail/cardinal_cubic_b_spline_detail.hpp @@ -192,7 +192,7 @@ cardinal_cubic_b_spline_imp::cardinal_cubic_b_spline_imp(BidiIterator f, B // There are, in fact 5 diagonals, but they only differ from zero on the first and last row, // so we can patch up the tridiagonal row reduction algorithm to deal with two special rows. // See Kress, equations 8.41 - // The the "tridiagonal" matrix is: + // The "tridiagonal" matrix is: // 1 0 -1 // 1 4 1 // 1 4 1 diff --git a/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp b/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp index b695ec74f4..abe50c3fdb 100644 --- a/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp +++ b/include/boost/math/quadrature/detail/sinh_sinh_detail.hpp @@ -50,7 +50,7 @@ class sinh_sinh_detail auto integrate(const F f, Real tolerance, Real* error, Real* L1, std::size_t* levels)->decltype(std::declval()(std::declval())) const; private: -private: + const std::vector& get_abscissa_row(std::size_t n)const { #if !defined(BOOST_MATH_NO_ATOMIC_INT) && defined(BOOST_HAS_THREADS) diff --git a/include/boost/math/special_functions/erf.hpp b/include/boost/math/special_functions/erf.hpp index 69c6bd22d0..bcc53d1afc 100644 --- a/include/boost/math/special_functions/erf.hpp +++ b/include/boost/math/special_functions/erf.hpp @@ -1263,7 +1263,3 @@ inline typename tools::promote_args::type erfc(T z) #include #endif // BOOST_MATH_SPECIAL_ERF_HPP - - - - diff --git a/include/boost/math/special_functions/gamma.hpp b/include/boost/math/special_functions/gamma.hpp index 71e8473cf8..f2c5a83ebe 100644 --- a/include/boost/math/special_functions/gamma.hpp +++ b/include/boost/math/special_functions/gamma.hpp @@ -1275,7 +1275,7 @@ T gamma_incomplete_imp(T a, T x, bool normalised, bool invert, else if(x < 1.1) { // - // Changover here occurs when P ~ 0.75 or Q ~ 0.25: + // Changeover here occurs when P ~ 0.75 or Q ~ 0.25: // if(x * 0.75f < a) { diff --git a/include/boost/math/special_functions/nonfinite_num_facets.hpp b/include/boost/math/special_functions/nonfinite_num_facets.hpp index 4ff702b308..697a35f983 100644 --- a/include/boost/math/special_functions/nonfinite_num_facets.hpp +++ b/include/boost/math/special_functions/nonfinite_num_facets.hpp @@ -223,7 +223,6 @@ namespace boost { *it = fill; } - private: const int flags_; }; @@ -573,7 +572,6 @@ namespace boost { return !*s; } // bool match_string - private: const int flags_; }; // diff --git a/include/boost/math/tools/config.hpp b/include/boost/math/tools/config.hpp index af2c64b4cf..a52393e7bb 100644 --- a/include/boost/math/tools/config.hpp +++ b/include/boost/math/tools/config.hpp @@ -168,9 +168,6 @@ #include #include #include -#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) -# include -#endif #include diff --git a/include/boost/math/tools/precision.hpp b/include/boost/math/tools/precision.hpp index fb3049995c..54ec983031 100644 --- a/include/boost/math/tools/precision.hpp +++ b/include/boost/math/tools/precision.hpp @@ -182,7 +182,7 @@ struct log_limit_traits std::integral_constant::max_exponent > INT_MAX ? INT_MAX : static_cast(std::numeric_limits::max_exponent))>, std::integral_constant >::type tag_type; - static constexpr bool value = tag_type::value ? true : false; + static constexpr bool value = tag_type::value; static_assert(::std::numeric_limits::is_specialized || (value == 0), "Type T must be specialized or equal to 0"); }; diff --git a/tools/igamma_temme_large_coef.cpp b/tools/igamma_temme_large_coef.cpp index 229c8137ca..5890221a28 100644 --- a/tools/igamma_temme_large_coef.cpp +++ b/tools/igamma_temme_large_coef.cpp @@ -150,7 +150,6 @@ void calculate_terms(double sigma, double a, unsigned bits) cout << "Print code [0|1]? "; cin >> code; - int prec = 2 + (static_cast(bits) * 3010LL)/10000; std::cout << std::scientific << std::setprecision(40); if(code)