mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Fix up data generators for C++03 etc.
This commit is contained in:
183
tools/Jamfile.v2
183
tools/Jamfile.v2
@@ -9,6 +9,7 @@
|
||||
# bring in the rules for testing
|
||||
import modules ;
|
||||
import path ;
|
||||
import ../../config/checks/config : requires ;
|
||||
|
||||
project
|
||||
: requirements
|
||||
@@ -34,12 +35,184 @@ project
|
||||
<include>../include_private
|
||||
;
|
||||
|
||||
lib gmp ;
|
||||
lib mpfr ;
|
||||
lib mpfi ;
|
||||
lib quadmath ;
|
||||
|
||||
for local source in [ glob *_data.cpp ] generate_test_values.cpp igamma_temme_large_coef.cpp lanczos_generator.cpp factorial_tables.cpp generate_rational_test.cpp
|
||||
{
|
||||
exe $(source:B) : $(source) ;
|
||||
install $(source:B)_bin : $(source:B) : <location>bin ;
|
||||
}
|
||||
exe bessel_data : bessel_data.cpp ;
|
||||
install bessel_data_install : bessel_data : <location>bin ;
|
||||
|
||||
exe ellint_f_data : ellint_f_data.cpp ;
|
||||
install ellint_f_data_install : ellint_f_data : <location>bin ;
|
||||
|
||||
exe heuman_lambda_data : heuman_lambda_data.cpp ;
|
||||
install heuman_lambda_data_install : heuman_lambda_data : <location>bin ;
|
||||
|
||||
exe hyp_2f2_data : hyp_2f2_data.cpp ;
|
||||
install hyp_2f2_data_install : hyp_2f2_data : <location>bin ;
|
||||
|
||||
exe laguerre_data : laguerre_data.cpp ;
|
||||
install laguerre_data_install : laguerre_data : <location>bin ;
|
||||
|
||||
exe bessel_derivative_data : bessel_derivative_data.cpp :
|
||||
[ check-target-builds ../../multiprecision/config//has_gmp : <source>gmp : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfr : <source>mpfr : <build>no ] ;
|
||||
install bessel_derivative_data_install : bessel_derivative_data : <location>bin ;
|
||||
|
||||
exe ellint_k_data : ellint_k_data.cpp ;
|
||||
install ellint_k_data_install : ellint_k_data : <location>bin ;
|
||||
|
||||
exe hyp_0f2_data : hyp_0f2_data.cpp ;
|
||||
install hyp_0f2_data_install : hyp_0f2_data : <location>bin ;
|
||||
|
||||
exe hypergeometric_dist_data : hypergeometric_dist_data.cpp : [ requires cxx11_hdr_random ] ;
|
||||
install hypergeometric_dist_data_install : hypergeometric_dist_data : <location>bin ;
|
||||
|
||||
exe legendre_data : legendre_data.cpp ;
|
||||
install legendre_data_install : legendre_data : <location>bin ;
|
||||
|
||||
exe beta_data : beta_data.cpp ;
|
||||
install beta_data_install : beta_data : <location>bin ;
|
||||
|
||||
exe ellint_pi2_data : ellint_pi2_data.cpp ;
|
||||
install ellint_pi2_data_install : ellint_pi2_data : <location>bin ;
|
||||
|
||||
exe hyp_1f1_big_data : hyp_1f1_big_data.cpp :
|
||||
[ check-target-builds ../../multiprecision/config//has_gmp : <source>gmp : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfr : <source>mpfr : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfi : <source>gmp <source>mpfr <source>mpfi : <build>no ]
|
||||
[ requires cxx11_decltype ] ;
|
||||
install hyp_1f1_big_data_install : hyp_1f1_big_data : <location>bin ;
|
||||
|
||||
exe ibeta_data : ibeta_data.cpp ;
|
||||
install ibeta_data_install : ibeta_data : <location>bin ;
|
||||
|
||||
exe log1p_expm1_data : log1p_expm1_data.cpp ;
|
||||
install log1p_expm1_data_install : log1p_expm1_data : <location>bin ;
|
||||
|
||||
exe carlson_ellint_data : carlson_ellint_data.cpp ;
|
||||
install carlson_ellint_data_install : carlson_ellint_data : <location>bin ;
|
||||
|
||||
exe ellint_pi3_data : ellint_pi3_data.cpp ;
|
||||
install ellint_pi3_data_install : ellint_pi3_data : <location>bin ;
|
||||
|
||||
exe hyp_1f1_data : hyp_1f1_data.cpp :
|
||||
[ check-target-builds ../../multiprecision/config//has_gmp : <source>gmp : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfr : <source>mpfr : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfi : <source>gmp <source>mpfr <source>mpfi : <build>no ]
|
||||
[ requires cxx11_decltype ] ;
|
||||
install hyp_1f1_data_install : hyp_1f1_data : <location>bin ;
|
||||
|
||||
exe ibeta_derivative_data : ibeta_derivative_data.cpp ;
|
||||
install ibeta_derivative_data_install : ibeta_derivative_data : <location>bin ;
|
||||
|
||||
exe sinc_data : sinc_data.cpp ;
|
||||
install sinc_data_install : sinc_data : <location>bin ;
|
||||
|
||||
exe cbrt_data : cbrt_data.cpp ;
|
||||
install cbrt_data_install : cbrt_data : <location>bin ;
|
||||
|
||||
exe erf_data : erf_data.cpp : [ check-target-builds ../../multiprecision/config//has_float128 : <source>quadmath : <build>no ] ;
|
||||
install erf_data_install : erf_data : <location>bin ;
|
||||
|
||||
exe hyp_1f1_log_big_data : hyp_1f1_log_big_data.cpp :
|
||||
[ check-target-builds ../../multiprecision/config//has_gmp : <source>gmp : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfr : <source>mpfr : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfi : <source>gmp <source>mpfr <source>mpfi : <build>no ]
|
||||
[ requires cxx11_decltype ] ;
|
||||
install hyp_1f1_log_big_data_install : hyp_1f1_log_big_data : <location>bin ;
|
||||
|
||||
exe ibeta_inv_data : ibeta_inv_data.cpp : [ check-target-builds ../../multiprecision/config//has_float128 : <source>quadmath : <build>no ] ;
|
||||
install ibeta_inv_data_install : ibeta_inv_data : <location>bin ;
|
||||
|
||||
exe spherical_harmonic_data : spherical_harmonic_data.cpp ;
|
||||
install spherical_harmonic_data_install : spherical_harmonic_data : <location>bin ;
|
||||
|
||||
exe digamma_data : digamma_data.cpp : [ check-target-builds ../../multiprecision/config//has_float128 : <source>quadmath : <build>no ] ;
|
||||
install digamma_data_install : digamma_data : <location>bin ;
|
||||
|
||||
exe expint_data : expint_data.cpp ;
|
||||
install expint_data_install : expint_data : <location>bin ;
|
||||
|
||||
exe hyp_1f1_reg_big_data : hyp_1f1_reg_big_data.cpp :
|
||||
[ check-target-builds ../../multiprecision/config//has_gmp : <source>gmp : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfr : <source>mpfr : <build>no ]
|
||||
[ check-target-builds ../../multiprecision/config//has_mpfi : <source>gmp <source>mpfr <source>mpfi : <build>no ]
|
||||
[ requires cxx11_decltype ] ;
|
||||
install hyp_1f1_reg_big_data_install : hyp_1f1_reg_big_data : <location>bin ;
|
||||
|
||||
exe ibeta_invab_data : ibeta_invab_data.cpp : [ check-target-builds ../../multiprecision/config//has_float128 : <source>quadmath : <build>no ] ;
|
||||
install ibeta_invab_data_install : ibeta_invab_data : <location>bin ;
|
||||
|
||||
exe tgamma_large_data : tgamma_large_data.cpp : [ check-target-builds ../../multiprecision/config//mpfr : <source>mpfr : <build>no ] [ check-target-builds ../../multiprecision/config//gmp : <source>gmp : <build>no ] ;
|
||||
install tgamma_large_data_install : tgamma_large_data : <location>bin ;
|
||||
|
||||
exe ellint_d_data : ellint_d_data.cpp ;
|
||||
install ellint_d_data_install : ellint_d_data : <location>bin ;
|
||||
|
||||
exe expint_i_data : expint_i_data.cpp ;
|
||||
install expint_i_data_install : expint_i_data : <location>bin ;
|
||||
|
||||
exe hyp_1f2_data : hyp_1f2_data.cpp ;
|
||||
install hyp_1f2_data_install : hyp_1f2_data : <location>bin ;
|
||||
|
||||
exe igamma_data : igamma_data.cpp : [ check-target-builds ../../multiprecision/config//has_float128 : <source>quadmath : <build>no ] ;
|
||||
install igamma_data_install : igamma_data : <location>bin ;
|
||||
|
||||
exe tgamma_ratio_data : tgamma_ratio_data.cpp ;
|
||||
install tgamma_ratio_data_install : tgamma_ratio_data : <location>bin ;
|
||||
|
||||
exe ellint_d2_data : ellint_d2_data.cpp ;
|
||||
install ellint_d2_data_install : ellint_d2_data : <location>bin ;
|
||||
|
||||
exe gamma_P_inva_data : gamma_P_inva_data.cpp : [ check-target-builds ../../multiprecision/config//has_float128 : <source>quadmath : <build>no ] ;
|
||||
install gamma_P_inva_data_install : gamma_P_inva_data : <location>bin ;
|
||||
|
||||
exe hyp_2f0_data : hyp_2f0_data.cpp ;
|
||||
install hyp_2f0_data_install : hyp_2f0_data : <location>bin ;
|
||||
|
||||
exe inv_hyp_data : inv_hyp_data.cpp ;
|
||||
install inv_hyp_data_install : inv_hyp_data : <location>bin ;
|
||||
|
||||
exe trig_data : trig_data.cpp ;
|
||||
install trig_data_install : trig_data : <location>bin ;
|
||||
|
||||
exe ellint_e_data : ellint_e_data.cpp ;
|
||||
install ellint_e_data_install : ellint_e_data : <location>bin ;
|
||||
|
||||
exe hermite_data : hermite_data.cpp ;
|
||||
install hermite_data_install : hermite_data : <location>bin ;
|
||||
|
||||
exe hyp_2f1_data : hyp_2f1_data.cpp ;
|
||||
install hyp_2f1_data_install : hyp_2f1_data : <location>bin ;
|
||||
|
||||
exe jacobi_zeta_data : jacobi_zeta_data.cpp ;
|
||||
install jacobi_zeta_data_install : jacobi_zeta_data : <location>bin ;
|
||||
|
||||
exe zeta_data : zeta_data.cpp ;
|
||||
install zeta_data_install : zeta_data : <location>bin ;
|
||||
|
||||
exe generate_test_values : generate_test_values.cpp ;
|
||||
install generate_test_values_install : generate_test_values : <location>bin ;
|
||||
|
||||
exe igamma_temme_large_coef : igamma_temme_large_coef.cpp ;
|
||||
install igamma_temme_large_coef_install : igamma_temme_large_coef : <location>bin ;
|
||||
|
||||
exe lanczos_generator : lanczos_generator.cpp ../../chrono/build//boost_chrono ../../system/build//boost_system : [ check-target-builds ../../multiprecision/config//has_float128 : <source>quadmath : <build>no ] ;
|
||||
install lanczos_generator_install : lanczos_generator : <location>bin ;
|
||||
|
||||
exe factorial_tables : factorial_tables.cpp ;
|
||||
install factorial_tables_install : factorial_tables : <location>bin ;
|
||||
|
||||
exe generate_rational_test : generate_rational_test.cpp ;
|
||||
install generate_rational_test_install : generate_rational_test : <location>bin ;
|
||||
|
||||
#for local source in [ glob *_data.cpp ] generate_test_values.cpp igamma_temme_large_coef.cpp lanczos_generator.cpp factorial_tables.cpp generate_rational_test.cpp
|
||||
#{
|
||||
# exe $(source:B) : $(source) : [ check-target-builds ../../multiprecision/config//has_gmp : <define>HAS_GMP <source>gmp : <build>no ] [ check-target-builds ../../multiprecision/config//has_mpfr : <define>HAS_MPFR <source>mpfr : <build>no ] [ check-target-builds ../../multiprecision/config//has_mpfi : <define>HAS_MPFI <source>gmp <source>mpfr <source>mpfi ] ;
|
||||
# install $(source:B)_bin : $(source:B) : <location>bin ;
|
||||
#}
|
||||
|
||||
exe generate_rational_code : generate_rational_code.cpp ;
|
||||
exe process_perf_results : process_perf_results.cpp ../../regex/build//boost_regex ;
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
//
|
||||
#include <fstream>
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/math/special_functions/bessel.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <fstream>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// (See accompanying file LICENSE_1_0.txt
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_rj.hpp>
|
||||
@@ -11,7 +12,6 @@
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
float extern_val;
|
||||
// confuse the compilers optimiser, and force a truncation to float precision:
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/digamma.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_1.hpp>
|
||||
#include <boost/math/special_functions/ellint_2.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_1.hpp>
|
||||
#include <boost/math/special_functions/ellint_2.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_2.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_1.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_1.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_2.hpp>
|
||||
#include <boost/math/special_functions/ellint_3.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_3.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
float extern_val;
|
||||
// confuse the compilers optimiser, and force a truncation to float precision:
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <boost/math/special_functions/erf.hpp> // for inverses
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/expint.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/expint.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
#define BOOST_MATH_POLY_METHOD 0
|
||||
#define BOOST_MATH_RATIONAL_METHOD 0
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/random.hpp>
|
||||
#include <boost/math/tools/rational.hpp>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/math/special_functions/hermite.hpp>
|
||||
#include <fstream>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_1.hpp>
|
||||
#include <boost/math/special_functions/jacobi_zeta.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
|
||||
|
||||
#define BOOST_MATH_USE_MPFR
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/hypergeometric_1f1.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
@@ -12,8 +14,6 @@
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#define BOOST_MATH_USE_MPFR
|
||||
#include "mp_t.hpp"
|
||||
|
||||
#include <boost/multiprecision/mpfi.hpp>
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/hypergeometric_1f1.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
@@ -12,7 +13,6 @@
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
@@ -22,10 +22,11 @@ struct hypergeometric_1f1_gen
|
||||
{
|
||||
mp_t operator()(mp_t a1, mp_t a2, mp_t z)
|
||||
{
|
||||
int scaling = 0;
|
||||
std::cout << a1 << " " << a2 << " " << z << std::endl;
|
||||
mp_t result = boost::math::detail::hypergeometric_1f1_generic_series(a1, a2, z, boost::math::policies::policy<>());
|
||||
mp_t result = boost::math::detail::hypergeometric_1F1_generic_series(a1, a2, z, boost::math::policies::policy<>(), scaling, "");
|
||||
std::cout << a1 << " " << a2 << " " << z << " " << result << std::endl;
|
||||
return result;
|
||||
return ldexp(result, scaling);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -33,7 +34,9 @@ struct hypergeometric_1f1_gen_2
|
||||
{
|
||||
mp_t operator()(mp_t a1, mp_t a2, mp_t z)
|
||||
{
|
||||
mp_t result = boost::math::detail::hypergeometric_1f1_generic_series(a1, a2, z, boost::math::policies::policy<>());
|
||||
int scaling = 0;
|
||||
mp_t result = boost::math::detail::hypergeometric_1F1_generic_series(a1, a2, z, boost::math::policies::policy<>(), scaling, "");
|
||||
result = ldexp(result, scaling);
|
||||
std::cout << a1 << " " << a2 << " " << z << " " << result << std::endl;
|
||||
if (fabs(result) > (std::numeric_limits<double>::max)())
|
||||
{
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
|
||||
|
||||
#define BOOST_MATH_USE_MPFR
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/hypergeometric_1f1.hpp>
|
||||
#include <boost/math/special_functions/hypergeometric_pfq.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
@@ -13,8 +15,6 @@
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#define BOOST_MATH_USE_MPFR
|
||||
#include "mp_t.hpp"
|
||||
|
||||
#include <boost/multiprecision/mpfr.hpp>
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
|
||||
|
||||
#define BOOST_MATH_USE_MPFR
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/hypergeometric_1f1.hpp>
|
||||
#include <boost/math/special_functions/hypergeometric_pfq.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
@@ -13,8 +14,6 @@
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#define BOOST_MATH_USE_MPFR
|
||||
#include "mp_t.hpp"
|
||||
|
||||
#include <boost/multiprecision/mpfr.hpp>
|
||||
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/hypergeometric_2f0.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
@@ -10,7 +11,6 @@
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
@@ -21,7 +21,7 @@ struct hypergeometric_2f0_gen
|
||||
mp_t operator()(mp_t a1, mp_t a2, mp_t z)
|
||||
{
|
||||
std::cout << a1 << " " << a2 << " " << z << std::endl;
|
||||
mp_t result = boost::math::detail::hypergeometric_2f0_generic_series(a1, a2, z, boost::math::policies::policy<>());
|
||||
mp_t result = boost::math::detail::hypergeometric_2F0_generic_series(a1, a2, z, boost::math::policies::policy<>());
|
||||
std::cout << a1 << " " << a2 << " " << z << " " << result << std::endl;
|
||||
return result;
|
||||
}
|
||||
@@ -31,7 +31,7 @@ struct hypergeometric_2f0_gen_spec1
|
||||
{
|
||||
boost::math::tuple<mp_t, mp_t, mp_t, mp_t> operator()(mp_t a1, mp_t z)
|
||||
{
|
||||
mp_t result = boost::math::detail::hypergeometric_2f0_generic_series(a1, a1 + 0.5, z, boost::math::policies::policy<>());
|
||||
mp_t result = boost::math::detail::hypergeometric_2F0_generic_series(a1, a1 + 0.5, z, boost::math::policies::policy<>());
|
||||
std::cout << a1 << " " << a1 + 0.5 << " " << z << " " << result << std::endl;
|
||||
return boost::math::make_tuple(a1, a1 + 0.5, z, result);
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
|
||||
#define BOOST_MATH_MAX_SERIES_ITERATION_POLICY 10000000
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
//#define BOOST_MATH_INSTRUMENT
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/distributions/hypergeometric.hpp>
|
||||
#include <boost/math/special_functions/trunc.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
@@ -12,7 +13,6 @@
|
||||
#include <boost/random/uniform_int.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <boost/math/special_functions/beta.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
@@ -11,7 +12,6 @@
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <boost/math/special_functions/beta.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
@@ -11,7 +12,6 @@
|
||||
#include <map>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/beta.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/beta.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/log1p.hpp>
|
||||
#include <boost/math/special_functions/erf.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace std;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
// Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <boost/math/special_functions/ellint_1.hpp>
|
||||
#include <boost/math/special_functions/ellint_2.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/math/special_functions/laguerre.hpp>
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <boost/math/tools/precision.hpp>
|
||||
#include <boost/math/tools/polynomial.hpp>
|
||||
@@ -17,7 +18,6 @@
|
||||
#include <boost/array.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include <boost/chrono.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
//
|
||||
// Define MP_TYPE
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/legendre.hpp>
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <fstream>
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/math/special_functions/log1p.hpp>
|
||||
#include <boost/math/special_functions/expm1.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/random.hpp>
|
||||
#include <boost/math/tools/rational.hpp>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/digamma.hpp>
|
||||
#include <boost/test/included/prg_exec_monitor.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/spherical_harmonic.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include <boost/random.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace boost::math;
|
||||
|
||||
@@ -48,7 +48,11 @@ int cpp_main(int argc, char*argv [])
|
||||
return 1;
|
||||
arg1.type |= dummy_param;
|
||||
|
||||
data.insert(&generate, arg1);
|
||||
typedef boost::math::tuple<mp_type, mp_type, mp_type>(&proc_type)(mp_type);
|
||||
|
||||
proc_type p = &generate;
|
||||
|
||||
data.insert(p, arg1);
|
||||
|
||||
std::cout << "Any more data [y/n]?";
|
||||
std::getline(std::cin, line);
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/gamma.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include "mp_t.hpp"
|
||||
#include <boost/math/special_functions/zeta.hpp>
|
||||
#include <boost/math/constants/constants.hpp>
|
||||
#include <fstream>
|
||||
#include <boost/math/tools/test_data.hpp>
|
||||
#include "mp_t.hpp"
|
||||
|
||||
using namespace boost::math::tools;
|
||||
using namespace std;
|
||||
|
||||
Reference in New Issue
Block a user