Skip to content

Commit

Permalink
Junk removal
Browse files Browse the repository at this point in the history
Removal of junk headers, typos, or mistakenly duplicated keywords
  • Loading branch information
AZero13 committed Oct 30, 2022
1 parent adc6dca commit 008c922
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion example/color_maps_sf_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

//
Expand Down
2 changes: 1 addition & 1 deletion include/boost/math/ccmath/abs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
1 change: 0 additions & 1 deletion include/boost/math/complex/details.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <limits>
#include <boost/math/special_functions/sign.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <boost/math/special_functions/sign.hpp>
#include <boost/math/constants/constants.hpp>

namespace boost{ namespace math{ namespace detail{
Expand Down
1 change: 0 additions & 1 deletion include/boost/math/distributions/poisson.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <boost/math/special_functions/fpclassify.hpp> // isnan.
#include <boost/math/special_functions/factorials.hpp> // factorials.
#include <boost/math/tools/roots.hpp> // for root finding.
#include <boost/math/distributions/detail/inv_discrete_quantile.hpp>

#include <utility>
#include <limits>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ cardinal_cubic_b_spline_imp<Real>::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
Expand Down
2 changes: 1 addition & 1 deletion include/boost/math/quadrature/detail/sinh_sinh_detail.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<F>()(std::declval<Real>())) const;

private:
private:

const std::vector<Real>& get_abscissa_row(std::size_t n)const
{
#if !defined(BOOST_MATH_NO_ATOMIC_INT) && defined(BOOST_HAS_THREADS)
Expand Down
4 changes: 0 additions & 4 deletions include/boost/math/special_functions/erf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,3 @@ inline typename tools::promote_args<T>::type erfc(T z)
#include <boost/math/special_functions/detail/erf_inv.hpp>

#endif // BOOST_MATH_SPECIAL_ERF_HPP




2 changes: 1 addition & 1 deletion include/boost/math/special_functions/gamma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 0 additions & 2 deletions include/boost/math/special_functions/nonfinite_num_facets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ namespace boost {
*it = fill;
}

private:
const int flags_;
};

Expand Down Expand Up @@ -573,7 +572,6 @@ namespace boost {
return !*s;
} // bool match_string

private:
const int flags_;
}; //

Expand Down
3 changes: 0 additions & 3 deletions include/boost/math/tools/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@
#include <cmath>
#include <climits>
#include <cfloat>
#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__))
# include <math.h>
#endif

#include <boost/math/tools/user.hpp>

Expand Down
2 changes: 1 addition & 1 deletion include/boost/math/tools/precision.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ struct log_limit_traits
std::integral_constant<int, (std::numeric_limits<T>::max_exponent > INT_MAX ? INT_MAX : static_cast<int>(std::numeric_limits<T>::max_exponent))>,
std::integral_constant<int, 0>
>::type tag_type;
static constexpr bool value = tag_type::value ? true : false;
static constexpr bool value = tag_type::value;
static_assert(::std::numeric_limits<T>::is_specialized || (value == 0), "Type T must be specialized or equal to 0");
};

Expand Down
1 change: 0 additions & 1 deletion tools/igamma_temme_large_coef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>(bits) * 3010LL)/10000;
std::cout << std::scientific << std::setprecision(40);

if(code)
Expand Down

0 comments on commit 008c922

Please sign in to comment.