2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Fix some gcc-5.1.0 warnings

This commit is contained in:
jzmaddock
2015-09-24 11:12:11 +01:00
parent 1690851386
commit aaa8a36a7e
4 changed files with 11 additions and 11 deletions

View File

@@ -261,7 +261,7 @@ void remez_minimax<T>::init_chebyshev()
detail::remez_error_function<T> Err(func, this->numerator(), this->denominator(), rel_error);
detail::remez_max_error_function<T> Ex(Err);
m_max_error = 0;
int max_err_location = 0;
//int max_err_location = 0;
for(unsigned i = 0; i < unknowns; ++i)
{
std::pair<T, T> r = brent_find_minima(Ex, zeros[i], zeros[i+1], m_precision);
@@ -270,7 +270,7 @@ void remez_minimax<T>::init_chebyshev()
if(rel_err > m_max_error)
{
m_max_error = fabs(r.second);
max_err_location = i;
//max_err_location = i;
}
}
control_points = maxima;
@@ -583,7 +583,7 @@ T remez_minimax<T>::iterate()
//
detail::remez_max_error_function<T> Ex(Err);
m_max_error = 0;
int max_err_location = 0;
//int max_err_location = 0;
for(unsigned i = 0; i < unknowns; ++i)
{
std::pair<T, T> r = brent_find_minima(Ex, zeros[i], zeros[i+1], m_precision);
@@ -592,7 +592,7 @@ T remez_minimax<T>::iterate()
if(rel_err > m_max_error)
{
m_max_error = fabs(r.second);
max_err_location = i;
//max_err_location = i;
}
}
//
@@ -602,7 +602,7 @@ T remez_minimax<T>::iterate()
//
swap(control_points, maxima);
m_max_change = 0;
int max_change_location = 0;
//int max_change_location = 0;
for(unsigned i = 0; i < unknowns; ++i)
{
control_points[i] = (control_points[i] * (100 - m_brake) + maxima[i] * m_brake) / 100;
@@ -622,7 +622,7 @@ T remez_minimax<T>::iterate()
if(change > m_max_change)
{
m_max_change = change;
max_change_location = i;
//max_change_location = i;
}
}
//

View File

@@ -27,7 +27,7 @@ template <class Real, class T>
void test_inverses(const T& data)
{
using namespace std;
typedef typename T::value_type row_type;
//typedef typename T::value_type row_type;
typedef Real value_type;
value_type precision = static_cast<value_type>(ldexp(1.0, 1-boost::math::policies::digits<value_type, boost::math::policies::policy<> >()/2)) * 100;
@@ -72,7 +72,7 @@ template <class Real, class T>
void test_inverses2(const T& data, const char* type_name, const char* test_name)
{
#if !(defined(ERROR_REPORTING_MODE) && !defined(IBETA_INV_FUNCTION_TO_TEST))
typedef typename T::value_type row_type;
//typedef typename T::value_type row_type;
typedef Real value_type;
typedef value_type (*pg)(value_type, value_type, value_type);

View File

@@ -34,7 +34,7 @@ template <class Real, class T>
void test_inverses(const T& data)
{
using namespace std;
typedef typename T::value_type row_type;
//typedef typename T::value_type row_type;
typedef Real value_type;
value_type precision = static_cast<value_type>(ldexp(1.0, 1-boost::math::policies::digits<value_type, boost::math::policies::policy<> >()/2)) * 100;
@@ -95,7 +95,7 @@ template <class Real, class T>
void test_inverses2(const T& data, const char* type_name, const char* test_name)
{
#if !(defined(ERROR_REPORTING_MODE) && !defined(IBETA_INVA_FUNCTION_TO_TEST))
typedef typename T::value_type row_type;
//typedef typename T::value_type row_type;
typedef Real value_type;
typedef value_type (*pg)(value_type, value_type, value_type);

View File

@@ -196,7 +196,7 @@ void test_spots(T)
BOOST_CHECK_CLOSE(::boost::math::gamma_p(static_cast<T>(30), ldexp(T(1), -30)), static_cast<T>(4.460092102072560946444018923090222645613009128135650652e-304L), tolerance);
BOOST_CHECK_CLOSE(::boost::math::gamma_p_derivative(static_cast<T>(2), ldexp(T(1), -575)), static_cast<T>(8.08634922390438981326119906687585206568664784377654648227177e-174L), tolerance);
typedef boost::math::policies::policy<boost::math::policies::overflow_error<boost::math::policies::throw_on_error> > throw_policy;
//typedef boost::math::policies::policy<boost::math::policies::overflow_error<boost::math::policies::throw_on_error> > throw_policy;
if(std::numeric_limits<T>::max_exponent <= 1024 && std::numeric_limits<T>::has_infinity)
{