mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
More Borland workarounds.
[SVN r39854]
This commit is contained in:
@@ -12,8 +12,10 @@
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/type_traits/is_floating_point.hpp>
|
||||
#include <boost/array.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
#include <boost/lambda/lambda.hpp>
|
||||
#include <boost/lambda/bind.hpp>
|
||||
#endif
|
||||
|
||||
#include "test_beta_hooks.hpp"
|
||||
#include "handle_test_result.hpp"
|
||||
@@ -204,6 +206,7 @@ void test_inverses(const T& data)
|
||||
template <class T>
|
||||
void test_inverses2(const T& data, const char* type_name, const char* test_name)
|
||||
{
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
typedef typename T::value_type row_type;
|
||||
typedef typename row_type::value_type value_type;
|
||||
|
||||
@@ -234,6 +237,7 @@ void test_inverses2(const T& data, const char* type_name, const char* test_name)
|
||||
bind(funcp, ret<value_type>(_1[0]), ret<value_type>(_1[1]), ret<value_type>(_1[2])),
|
||||
ret<value_type>(_1[4]));
|
||||
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::ibetac_inv", test_name);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -12,8 +12,10 @@
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/type_traits/is_floating_point.hpp>
|
||||
#include <boost/array.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
#include <boost/lambda/lambda.hpp>
|
||||
#include <boost/lambda/bind.hpp>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_GSL
|
||||
#include <gsl/gsl_errno.h>
|
||||
@@ -168,6 +170,7 @@ void test_inverses(const T& data)
|
||||
template <class T>
|
||||
void test_inverses2(const T& data, const char* type_name, const char* test_name)
|
||||
{
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
typedef typename T::value_type row_type;
|
||||
typedef typename row_type::value_type value_type;
|
||||
|
||||
@@ -216,6 +219,7 @@ void test_inverses2(const T& data, const char* type_name, const char* test_name)
|
||||
bind(funcp, ret<value_type>(_1[0]), ret<value_type>(_1[1]), ret<value_type>(_1[2])),
|
||||
ret<value_type>(_1[6]));
|
||||
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::ibetac_invb", test_name);
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
@@ -9,8 +9,10 @@
|
||||
#include <boost/math/special_functions/laguerre.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/array.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
#include <boost/lambda/lambda.hpp>
|
||||
#include <boost/lambda/bind.hpp>
|
||||
#endif
|
||||
|
||||
#include "handle_test_result.hpp"
|
||||
#include "test_legendre_hooks.hpp"
|
||||
@@ -134,6 +136,7 @@ void expected_results()
|
||||
template <class T>
|
||||
void do_test_laguerre2(const T& data, const char* type_name, const char* test_name)
|
||||
{
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
typedef typename T::value_type row_type;
|
||||
typedef typename row_type::value_type value_type;
|
||||
|
||||
@@ -163,11 +166,13 @@ void do_test_laguerre2(const T& data, const char* type_name, const char* test_na
|
||||
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::laguerre(n, x)", test_name);
|
||||
|
||||
std::cout << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void do_test_laguerre3(const T& data, const char* type_name, const char* test_name)
|
||||
{
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
typedef typename T::value_type row_type;
|
||||
typedef typename row_type::value_type value_type;
|
||||
|
||||
@@ -200,6 +205,7 @@ void do_test_laguerre3(const T& data, const char* type_name, const char* test_na
|
||||
boost::lambda::ret<value_type>(boost::lambda::_1[3]));
|
||||
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::laguerre(n, m, x)", test_name);
|
||||
std::cout << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
@@ -9,8 +9,10 @@
|
||||
#include <boost/math/special_functions/legendre.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/array.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
#include <boost/lambda/lambda.hpp>
|
||||
#include <boost/lambda/bind.hpp>
|
||||
#endif
|
||||
|
||||
#include "handle_test_result.hpp"
|
||||
#include "test_legendre_hooks.hpp"
|
||||
@@ -190,6 +192,7 @@ void expected_results()
|
||||
template <class T>
|
||||
void do_test_legendre_p(const T& data, const char* type_name, const char* test_name)
|
||||
{
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
typedef typename T::value_type row_type;
|
||||
typedef typename row_type::value_type value_type;
|
||||
|
||||
@@ -267,11 +270,13 @@ void do_test_legendre_p(const T& data, const char* type_name, const char* test_n
|
||||
|
||||
|
||||
std::cout << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void do_test_assoc_legendre_p(const T& data, const char* type_name, const char* test_name)
|
||||
{
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
typedef typename T::value_type row_type;
|
||||
typedef typename row_type::value_type value_type;
|
||||
|
||||
@@ -304,6 +309,7 @@ void do_test_assoc_legendre_p(const T& data, const char* type_name, const char*
|
||||
boost::lambda::ret<value_type>(boost::lambda::_1[3]));
|
||||
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::legendre_p", test_name);
|
||||
std::cout << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
|
||||
#include "test_rational.hpp"
|
||||
#include <boost/math/concepts/real_concept.hpp>
|
||||
|
||||
template void do_test_spots<boost::math::concepts::real_concept, boost::math::concepts::real_concept>(boost::math::concepts::real_concept, boost::math::concepts::real_concept);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
|
||||
#include "test_rational.hpp"
|
||||
#include <boost/math/concepts/real_concept.hpp>
|
||||
|
||||
template void do_test_spots<boost::math::concepts::real_concept, int>(boost::math::concepts::real_concept, int);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
|
||||
#include "test_rational.hpp"
|
||||
#include <boost/math/concepts/real_concept.hpp>
|
||||
|
||||
template void do_test_spots<boost::math::concepts::real_concept, unsigned>(boost::math::concepts::real_concept, unsigned);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
|
||||
#include "test_rational.hpp"
|
||||
#include <boost/math/concepts/real_concept.hpp>
|
||||
|
||||
#ifdef BOOST_HAS_LONG_LONG
|
||||
template void do_test_spots<boost::math::concepts::real_concept, unsigned long long>(boost::math::concepts::real_concept, unsigned long long);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
|
||||
#include "test_rational.hpp"
|
||||
#include <boost/math/concepts/real_concept.hpp>
|
||||
|
||||
template void do_test_spots<boost::math::concepts::real_concept, float>(boost::math::concepts::real_concept, float);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,8 +9,10 @@
|
||||
#include <boost/math/special_functions/spherical_harmonic.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/array.hpp>
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
#include <boost/lambda/lambda.hpp>
|
||||
#include <boost/lambda/bind.hpp>
|
||||
#endif
|
||||
|
||||
#include "handle_test_result.hpp"
|
||||
|
||||
@@ -98,6 +100,7 @@ void expected_results()
|
||||
template <class T>
|
||||
void do_test_spherical_harmonic(const T& data, const char* type_name, const char* test_name)
|
||||
{
|
||||
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
|
||||
typedef typename T::value_type row_type;
|
||||
typedef typename row_type::value_type value_type;
|
||||
|
||||
@@ -151,6 +154,7 @@ void do_test_spherical_harmonic(const T& data, const char* type_name, const char
|
||||
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::spherical_harmonic_i", test_name);
|
||||
|
||||
std::cout << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
Reference in New Issue
Block a user