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
AZero13 committed Nov 5, 2022
1 parent cb32691 commit fe48a3b
Showing 58 changed files with 95 additions and 103 deletions.
4 changes: 2 additions & 2 deletions doc/background/remez.qbk
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@ The N+2 extrema can then be found using standard function minimisation technique
We now have a choice: multi-point exchange, or single point exchange.

In single point exchange, we move the control point nearest to the largest extrema to
the absissa value of the extrema.
the abscissa value of the extrema.

In multi-point exchange we swap all the current control points, for the locations
of the extrema.
@@ -317,7 +317,7 @@ retaining the last set of control points at each stage.
* Try using a smaller interval. It may also be possible to optimise over
one (small) interval, rescale the control points over a larger interval,
and then re-minimise.
* Keep absissa values small: use a change of variable to keep the abscissa
* Keep abscissa values small: use a change of variable to keep the abscissa
over, say \[0, b\], for some smallish value /b/.

[h4 References]
6 changes: 3 additions & 3 deletions doc/concepts/concepts.qbk
Original file line number Diff line number Diff line change
@@ -285,9 +285,9 @@ of type `const RealType`, and /ca/ is an object of type `const arithmetic-type`
[table
[[Expression][Result Type][Notes]]
[[`RealType(cr)`][RealType]
[RealType is copy constructible.]]
[RealType is copy constructable.]]
[[`RealType(ca)`][RealType]
[RealType is copy constructible from the arithmetic types.]]
[RealType is copy constructable from the arithmetic types.]]
[[`r = cr`][RealType&][Assignment operator.]]
[[`r = ca`][RealType&][Assignment operator from the arithmetic types.]]
[[`r += cr`][RealType&][Adds cr to r.]]
@@ -468,7 +468,7 @@ object of a type convertible to `RealType`.
[[DistributionType::policy_type][RealType]
[The __Policy to use when evaluating functions that depend on this distribution.]]
[[d = cd][Distribution&][Distribution types are assignable.]]
[[Distribution(cd)][Distribution][Distribution types are copy constructible.]]
[[Distribution(cd)][Distribution][Distribution types are copy constructable.]]
[[pdf(cd, cr)][RealType][Returns the PDF of the distribution.]]
[[cdf(cd, cr)][RealType][Returns the CDF of the distribution.]]
[[cdf(complement(cd, cr))][RealType]
2 changes: 1 addition & 1 deletion doc/constants/constants.qbk
Original file line number Diff line number Diff line change
@@ -610,7 +610,7 @@ accurate to at least 100 decimal digits (in practice that means at least 102 dig
Again for consistency use scientific format with a signed exponent.

For types with precision greater than a long double,
then if T is constructible `T `is constructible from a `const char*`
then if T is constructable `T `is constructable from a `const char*`
then it's directly constructed from the string,
otherwise we fall back on lexical_cast to convert to type `T`.
(Using a string is necessary because you can't use a numeric constant
2 changes: 1 addition & 1 deletion doc/html/math_toolkit/barycentric.html
Original file line number Diff line number Diff line change
@@ -238,7 +238,7 @@ <h4>
<span class="identifier">r</span><span class="special">[</span><span class="number">3.56</span><span class="special">]</span> <span class="special">=</span> <span class="number">2.0002</span><span class="special">;</span>
<span class="identifier">r</span><span class="special">[</span><span class="number">3.72</span><span class="special">]</span> <span class="special">=</span> <span class="number">2.0001</span><span class="special">;</span>

<span class="comment">// Let's discover the absissa that will generate a potential of exactly 3.0,</span>
<span class="comment">// Let's discover the abscissa that will generate a potential of exactly 3.0,</span>
<span class="comment">// start by creating 2 ranges for the x and y values:</span>
<span class="keyword">auto</span> <span class="identifier">x_range</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">adaptors</span><span class="special">::</span><span class="identifier">keys</span><span class="special">(</span><span class="identifier">r</span><span class="special">);</span>
<span class="keyword">auto</span> <span class="identifier">y_range</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">adaptors</span><span class="special">::</span><span class="identifier">values</span><span class="special">(</span><span class="identifier">r</span><span class="special">);</span>
4 changes: 2 additions & 2 deletions doc/html/math_toolkit/cardinal_cubic_b.html
Original file line number Diff line number Diff line change
@@ -211,10 +211,10 @@ <h4>

<span class="comment">// Now we can evaluate the spline wherever we please.</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">mt19937</span> <span class="identifier">gen</span><span class="special">;</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">random</span><span class="special">::</span><span class="identifier">uniform_real_distribution</span><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">absissa</span><span class="special">(</span><span class="number">0</span><span class="special">,</span> <span class="identifier">v</span><span class="special">.</span><span class="identifier">size</span><span class="special">()*</span><span class="identifier">step</span><span class="special">);</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">random</span><span class="special">::</span><span class="identifier">uniform_real_distribution</span><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">abscissa</span><span class="special">(</span><span class="number">0</span><span class="special">,</span> <span class="identifier">v</span><span class="special">.</span><span class="identifier">size</span><span class="special">()*</span><span class="identifier">step</span><span class="special">);</span>
<span class="keyword">for</span> <span class="special">(</span><span class="identifier">size_t</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special">&lt;</span> <span class="number">10</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span><span class="special">)</span>
<span class="special">{</span>
<span class="keyword">double</span> <span class="identifier">x</span> <span class="special">=</span> <span class="identifier">absissa</span><span class="special">(</span><span class="identifier">gen</span><span class="special">);</span>
<span class="keyword">double</span> <span class="identifier">x</span> <span class="special">=</span> <span class="identifier">abscissa</span><span class="special">(</span><span class="identifier">gen</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="string">"sin("</span> <span class="special">&lt;&lt;</span> <span class="identifier">x</span> <span class="special">&lt;&lt;</span> <span class="string">") = "</span> <span class="special">&lt;&lt;</span> <span class="identifier">sin</span><span class="special">(</span><span class="identifier">x</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="string">", spline interpolation gives "</span> <span class="special">&lt;&lt;</span> <span class="identifier">spline</span><span class="special">(</span><span class="identifier">x</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="string">"cos("</span> <span class="special">&lt;&lt;</span> <span class="identifier">x</span> <span class="special">&lt;&lt;</span> <span class="string">") = "</span> <span class="special">&lt;&lt;</span> <span class="identifier">cos</span><span class="special">(</span><span class="identifier">x</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="string">", spline derivative interpolation gives "</span> <span class="special">&lt;&lt;</span> <span class="identifier">spline</span><span class="special">.</span><span class="identifier">prime</span><span class="special">(</span><span class="identifier">x</span><span class="special">)</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
<span class="special">}</span>
4 changes: 2 additions & 2 deletions doc/html/math_toolkit/constants_faq.html
Original file line number Diff line number Diff line change
@@ -226,8 +226,8 @@ <h5>
digits). Again for consistency use scientific format with a signed exponent.
</p>
<p>
For types with precision greater than a long double, then if T is constructible
<code class="computeroutput"><span class="identifier">T</span> </code>is constructible from a
For types with precision greater than a long double, then if T is constructable
<code class="computeroutput"><span class="identifier">T</span> </code>is constructable from a
<code class="computeroutput"><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span></code> then it's directly constructed from the string,
otherwise we fall back on lexical_cast to convert to type <code class="computeroutput"><span class="identifier">T</span></code>.
(Using a string is necessary because you can't use a numeric constant since
2 changes: 1 addition & 1 deletion doc/html/math_toolkit/dist_concept.html
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@
</td>
<td>
<p>
Distribution types are copy constructible.
Distribution types are copy constructable.
</p>
</td>
</tr>
4 changes: 2 additions & 2 deletions doc/html/math_toolkit/real_concepts.html
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@ <h5>
</td>
<td>
<p>
RealType is copy constructible.
RealType is copy constructable.
</p>
</td>
</tr>
@@ -120,7 +120,7 @@ <h5>
</td>
<td>
<p>
RealType is copy constructible from the arithmetic types.
RealType is copy constructable from the arithmetic types.
</p>
</td>
</tr>
4 changes: 2 additions & 2 deletions doc/html/math_toolkit/remez.html
Original file line number Diff line number Diff line change
@@ -230,7 +230,7 @@ <h5>
</p>
<p>
In single point exchange, we move the control point nearest to the largest
extrema to the absissa value of the extrema.
extrema to the abscissa value of the extrema.
</p>
<p>
In multi-point exchange we swap all the current control points, for the locations
@@ -468,7 +468,7 @@ <h5>
and then re-minimise.
</li>
<li class="listitem">
Keep absissa values small: use a change of variable to keep the abscissa
Keep abscissa values small: use a change of variable to keep the abscissa
over, say [0, b], for some smallish value <span class="emphasis"><em>b</em></span>.
</li>
</ul></div>
2 changes: 1 addition & 1 deletion doc/html/math_toolkit/result_type.html
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@
</li>
<li class="listitem">
If any of the arguments is a user-defined class type, then the result type
is the first such class type that is constructible from all of the other
is the first such class type that is constructable from all of the other
argument types.
</li>
<li class="listitem">
2 changes: 1 addition & 1 deletion doc/overview/result_type_calc.qbk
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ further analysis.
then it is treated as if it were of type `double` for the purposes of
further analysis.
# If any of the arguments is a user-defined class type, then the result type
is the first such class type that is constructible from all of the other
is the first such class type that is constructable from all of the other
argument types.
# If any of the arguments is of type `long double`, then the result is of type
`long double`.
2 changes: 1 addition & 1 deletion example/barycentric_interpolation_example_2.cpp
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@ int main()
r[3.56] = 2.0002;
r[3.72] = 2.0001;

// Let's discover the absissa that will generate a potential of exactly 3.0,
// Let's discover the abscissa that will generate a potential of exactly 3.0,
// start by creating 2 ranges for the x and y values:
auto x_range = boost::adaptors::keys(r);
auto y_range = boost::adaptors::values(r);
2 changes: 1 addition & 1 deletion example/bessel_errors_example.cpp
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@

// Weisstein, Eric W. "Bessel Function Zeros." From MathWorld--A Wolfram Web Resource.
// http://mathworld.wolfram.com/BesselFunctionZeros.html
// Test values can be calculated using [@wolframalpha.com WolframAplha]
// Test values can be calculated using [@wolframalpha.com WolframAlpha]
// See also http://dlmf.nist.gov/10.21

//[bessel_errors_example_1
2 changes: 1 addition & 1 deletion example/bessel_zeros_example.cpp
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@

// Weisstein, Eric W. "Bessel Function Zeros." From MathWorld--A Wolfram Web Resource.
// http://mathworld.wolfram.com/BesselFunctionZeros.html
// Test values can be calculated using [@wolframalpha.com WolframAplha]
// Test values can be calculated using [@wolframalpha.com WolframAlpha]
// See also http://dlmf.nist.gov/10.21

//[bessel_zero_example_1
2 changes: 1 addition & 1 deletion example/bessel_zeros_example_1.cpp
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@

// Weisstein, Eric W. "Bessel Function Zeros." From MathWorld--A Wolfram Web Resource.
// http://mathworld.wolfram.com/BesselFunctionZeros.html
// Test values can be calculated using [@wolframalpha.com WolframAplha]
// Test values can be calculated using [@wolframalpha.com WolframAlpha]
// See also http://dlmf.nist.gov/10.21

//[bessel_zeros_example_1
4 changes: 2 additions & 2 deletions example/cardinal_cubic_b_spline_example.cpp
Original file line number Diff line number Diff line change
@@ -41,10 +41,10 @@ int main()

// Now we can evaluate the spline wherever we please.
std::mt19937 gen;
boost::random::uniform_real_distribution<double> absissa(0, v.size()*step);
boost::random::uniform_real_distribution<double> abscissa(0, v.size()*step);
for (size_t i = 0; i < 10; ++i)
{
double x = absissa(gen);
double x = abscissa(gen);
std::cout << "sin(" << x << ") = " << sin(x) << ", spline interpolation gives " << spline(x) << std::endl;
std::cout << "cos(" << x << ") = " << cos(x) << ", spline derivative interpolation gives " << spline.prime(x) << std::endl;
}
2 changes: 1 addition & 1 deletion example/color_maps_sf_example.cpp
Original file line number Diff line number Diff line change
@@ -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;
}

//
2 changes: 1 addition & 1 deletion include/boost/math/ccmath/abs.hpp
Original file line number Diff line number Diff line change
@@ -64,7 +64,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
}
}
2 changes: 1 addition & 1 deletion include/boost/math/ccmath/div.hpp
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ template <typename ReturnType, typename Z>
inline constexpr ReturnType div_impl(const Z x, const Z y) noexcept
{
// std::div_t/ldiv_t/lldiv_t/imaxdiv_t can be defined as either { Z quot; Z rem; }; or { Z rem; Z quot; };
// so don't use braced initialziation to guarantee compatibility
// so don't use braced initialization to guarantee compatibility
ReturnType ans {0, 0};

ans.quot = x / y;
1 change: 0 additions & 1 deletion include/boost/math/complex/details.hpp
Original file line number Diff line number Diff line change
@@ -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{
4 changes: 2 additions & 2 deletions include/boost/math/concepts/distributions.hpp
Original file line number Diff line number Diff line change
@@ -42,14 +42,14 @@ class distribution_archetype
public:
typedef RealType value_type;

distribution_archetype(const distribution_archetype&); // Copy constructible.
distribution_archetype(const distribution_archetype&); // Copy constructable.
distribution_archetype& operator=(const distribution_archetype&); // Assignable.

// There is no default constructor,
// but we need a way to instantiate the archetype:
static distribution_archetype& get_object()
{
// will never get caled:
// will never get called:
return *reinterpret_cast<distribution_archetype*>(nullptr);
}
}; // template <class RealType>class distribution_archetype
4 changes: 2 additions & 2 deletions include/boost/math/differentiation/autodiff.hpp
Original file line number Diff line number Diff line change
@@ -136,14 +136,14 @@ class fvar {
// Initialize a variable or constant.
fvar(root_type const&, bool const is_variable);

// RealType(cr) | RealType | RealType is copy constructible.
// RealType(cr) | RealType | RealType is copy constructable.
fvar(fvar const&) = default;

// Be aware of implicit casting from one fvar<> type to another by this copy constructor.
template <typename RealType2, size_t Order2>
fvar(fvar<RealType2, Order2> const&);

// RealType(ca) | RealType | RealType is copy constructible from the arithmetic types.
// RealType(ca) | RealType | RealType is copy constructable from the arithmetic types.
explicit fvar(root_type const&); // Initialize a constant. (No epsilon terms.)

template <typename RealType2>
2 changes: 1 addition & 1 deletion include/boost/math/distributions/bernoulli.hpp
Original file line number Diff line number Diff line change
@@ -151,7 +151,7 @@ namespace boost
return dist.success_fraction();
} // mean

// Rely on dereived_accessors quantile(half)
// Rely on derived_accessors quantile(half)
//template <class RealType>
//inline RealType median(const bernoulli_distribution<RealType, Policy>& dist)
//{ // Median of bernoulli distribution is not defined.
1 change: 0 additions & 1 deletion include/boost/math/distributions/poisson.hpp
Original file line number Diff line number Diff line change
@@ -554,7 +554,6 @@ namespace boost
// for this distribution have been defined, in order to
// keep compilers that support two-phase lookup happy.
#include <boost/math/distributions/detail/derived_accessors.hpp>
#include <boost/math/distributions/detail/inv_discrete_quantile.hpp>

#endif // BOOST_MATH_SPECIAL_POISSON_HPP

2 changes: 1 addition & 1 deletion include/boost/math/distributions/uniform.hpp
Original file line number Diff line number Diff line change
@@ -362,7 +362,7 @@ namespace boost{ namespace math
RealType lower = dist.lower();
RealType upper = dist.upper();
RealType result = 0; // of checks.
if(false == detail::check_uniform("boost::math::kurtosis_execess(const uniform_distribution<%1%>&)", lower, upper, &result, Policy()))
if(false == detail::check_uniform("boost::math::kurtosis_excess(const uniform_distribution<%1%>&)", lower, upper, &result, Policy()))
{
return result;
}
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ class bezier_polynomial_imp
using std::fma;
// control_points_.size() == n + 1
RandomAccessContainer c(control_points_.size() + 1);
// This is the constant of integration, chosen arbitarily to be zero:
// This is the constant of integration, chosen arbitrarily to be zero:
for (Z j = 0; j < control_points_[0].size(); ++j) {
c[0][j] = Real(0);
}
Original file line number Diff line number Diff line change
@@ -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
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
@@ -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)
2 changes: 1 addition & 1 deletion include/boost/math/special_functions/beta.hpp
Original file line number Diff line number Diff line change
@@ -1439,7 +1439,7 @@ T ibeta_derivative_imp(T a, T b, T x, const Policy& pol)
return f1;
}
//
// Some forwarding functions that dis-ambiguate the third argument type:
// Some forwarding functions that disambiguate the third argument type:
//
template <class RT1, class RT2, class Policy>
inline typename tools::promote_args<RT1, RT2>::type
Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@ inline bool asymptotic_bessel_large_x_limit(const T& v, const T& x)
}

template <class T, class Policy>
void temme_asyptotic_y_small_x(T v, T x, T* Y, T* Y1, const Policy& pol)
void temme_asymptotic_y_small_x(T v, T x, T* Y, T* Y1, const Policy& pol)
{
T c = 1;
T p = (v / boost::math::sin_pi(v, pol)) * pow(x / 2, -v) / boost::math::tgamma(1 - v, pol);
Original file line number Diff line number Diff line change
@@ -213,4 +213,4 @@ inline T bessel_y_derivative_small_z_series(T v, T x, const Policy& pol)

}}} // namespaces

#endif // BOOST_MATH_BESSEL_JY_DERIVATVIES_SERIES_HPP
#endif // BOOST_MATH_BESSEL_JY_DERIVATIVES_SERIES_HPP
Loading

0 comments on commit fe48a3b

Please sign in to comment.