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

Remove boost.assert

This commit is contained in:
Matt Borland
2021-03-14 12:22:26 +03:00
parent 03b30efdd3
commit d59c734c5e
109 changed files with 390 additions and 367 deletions

View File

@@ -302,7 +302,7 @@ int main(int argc, char* argv[])
letter = "y";
}
else
BOOST_ASSERT(0);
BOOST_MATH_ASSERT(0);
}
bool cont;
@@ -327,7 +327,7 @@ int main(int argc, char* argv[])
else if(functype == func_y)
fp = sph_bessel_y_bare;
else
BOOST_ASSERT(0);
BOOST_MATH_ASSERT(0);
data.insert(fp, arg1, arg2);

View File

@@ -114,7 +114,7 @@ int cpp_main(int argc, char*argv [])
letter = "y";
}
else
BOOST_ASSERT(0);
BOOST_MATH_ASSERT(0);
}
bool cont;
@@ -142,7 +142,7 @@ int cpp_main(int argc, char*argv [])
else if(functype == func_y)
fp = sph_bessel_y_derivative_bare;
else
BOOST_ASSERT(0);
BOOST_MATH_ASSERT(0);
data.insert(fp, arg2, arg1);

View File

@@ -204,7 +204,7 @@ int main(int argc, char*argv [])
letter = "y";
}
else
BOOST_ASSERT(0);
BOOST_MATH_ASSERT(0);
}
::processFiles(functype);

View File

@@ -88,7 +88,7 @@ T ellint_rj_old(T x, T y, T z, T p, const Policy& pol)
T q = -p;
T pmy = (z - y) * (y - x) / (y + q); // p - y
BOOST_ASSERT(pmy >= 0);
BOOST_MATH_ASSERT(pmy >= 0);
p = pmy + y;
value = ellint_rj_old(x, y, z, p, pol);

View File

@@ -46,7 +46,7 @@ void print_value(double x, std::ostream& os = std::cout)
m = std::ldexp(m, 54);
e -= 54;
boost::int64_t val = (boost::int64_t)m;
BOOST_ASSERT(std::ldexp((double)val, e) == x);
BOOST_MATH_ASSERT(std::ldexp((double)val, e) == x);
os << "std::ldexp((double)" << val << ", " << e << ")";
}

View File

@@ -67,7 +67,7 @@ struct igamma_data_generator
z = truncate_to_float((std::max)(mp_t(100), a*100));
break;
default:
BOOST_ASSERT(0 == "Can't get here!!");
BOOST_MATH_ASSERT(0 == "Can't get here!!");
}
//mp_t g = boost::math::tgamma(a);

View File

@@ -4643,8 +4643,8 @@ struct lanczos_rational
T gamma(T z)
{
using namespace std;
BOOST_ASSERT(num.size() == denom.size());
BOOST_ASSERT(num.size() == N);
BOOST_MATH_ASSERT(num.size() == denom.size());
BOOST_MATH_ASSERT(num.size() == N);
T zgh = z + g - T(0.5);
T prefix = pow(zgh, T(z - 0.5)) / exp(zgh);
T s1, s2;
@@ -4704,8 +4704,8 @@ struct lanczos_rational
}
//std::cout << l_num << std::endl;
//std::cout << l_denom << std::endl;
BOOST_ASSERT(num.size() == l_num.degree()+1);
BOOST_ASSERT(denom.size() == l_denom.degree()+1);
BOOST_MATH_ASSERT(num.size() == l_num.degree()+1);
BOOST_MATH_ASSERT(denom.size() == l_denom.degree()+1);
g = boost::math::tools::real_cast<T>(info.r);
N = info.n;
/*