]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/multiprecision/test/math/high_prec/test_gamma.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / multiprecision / test / math / high_prec / test_gamma.hpp
index fa5c9e548d5f465edafb21996b4016215e2efc3c..fe1c356f9bcf4a966d51e9b6984f1b48ab6d3604 100644 (file)
@@ -40,15 +40,15 @@ void do_test_gamma(const T& data, const char* type_name, const char* test_name)
    boost::math::tools::test_result<value_type> result;
 
    std::cout << "Testing " << test_name << " with type " << type_name
-      << "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
+             << "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
 
    //
    // test tgamma against data:
    //
    result = boost::math::tools::test_hetero<Real>(
-      data,
-      bind_func<Real>(funcp, 0),
-      extract_result<Real>(1));
+       data,
+       bind_func<Real>(funcp, 0),
+       extract_result<Real>(1));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::tgamma", test_name);
 
    //
@@ -57,12 +57,12 @@ void do_test_gamma(const T& data, const char* type_name, const char* test_name)
 #if defined(BOOST_MATH_NO_DEDUCED_FUNCTION_POINTERS)
    funcp = boost::math::lgamma<value_type>;
 #else
-   funcp = boost::math::lgamma;
+   funcp    = boost::math::lgamma;
 #endif
    result = boost::math::tools::test_hetero<Real>(
-      data,
-      bind_func<Real>(funcp, 0),
-      extract_result<Real>(2));
+       data,
+       bind_func<Real>(funcp, 0),
+       extract_result<Real>(2));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::lgamma", test_name);
 
    std::cout << std::endl;
@@ -71,22 +71,19 @@ void do_test_gamma(const T& data, const char* type_name, const char* test_name)
 template <class T>
 void test_gamma(T, const char* name)
 {
-#  include "gamma.ipp"
+#include "gamma.ipp"
 
    do_test_gamma<T>(gamma, name, "random values");
 
-#  include "gamma_1_2.ipp"
+#include "gamma_1_2.ipp"
 
    do_test_gamma<T>(gamma_1_2, name, "Values near 1 and 2");
 
-#  include "gamma_0.ipp"
+#include "gamma_0.ipp"
 
    do_test_gamma<T>(gamma_0, name, "Values near 0");
 
-#  include "gamma_neg.ipp"
+#include "gamma_neg.ipp"
 
    do_test_gamma<T>(gamma_neg, name, "Negative arguments");
-
 }
-
-