mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
@@ -162,7 +162,29 @@ run test_ibeta.cpp
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
: test_ibeta_real_concept ;
|
||||
<define>TEST_DATA=1
|
||||
: test_ibeta_real_concept1 ;
|
||||
run test_ibeta.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
<define>TEST_DATA=2
|
||||
: test_ibeta_real_concept2 ;
|
||||
run test_ibeta.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
<define>TEST_DATA=3
|
||||
: test_ibeta_real_concept3 ;
|
||||
run test_ibeta.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
<define>TEST_DATA=4
|
||||
: test_ibeta_real_concept4 ;
|
||||
run test_ibeta_inv.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
@@ -186,7 +208,29 @@ run test_ibeta_inv.cpp
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
: test_ibeta_inv_real_concept ;
|
||||
<define>TEST_DATA=1
|
||||
: test_ibeta_inv_real_concept1 ;
|
||||
run test_ibeta_inv.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
<define>TEST_DATA=2
|
||||
: test_ibeta_inv_real_concept2 ;
|
||||
run test_ibeta_inv.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
<define>TEST_DATA=3
|
||||
: test_ibeta_inv_real_concept3 ;
|
||||
run test_ibeta_inv.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
<define>TEST_DATA=4
|
||||
: test_ibeta_inv_real_concept4 ;
|
||||
run test_ibeta_inv_ab.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
@@ -210,7 +254,22 @@ run test_ibeta_inv_ab.cpp
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
: test_ibeta_inv_ab_real_concept ;
|
||||
<define>TEST_DATA=1
|
||||
: test_ibeta_inv_ab_real_concept1 ;
|
||||
run test_ibeta_inv_ab.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
<define>TEST_DATA=2
|
||||
: test_ibeta_inv_ab_real_concept2 ;
|
||||
run test_ibeta_inv_ab.cpp
|
||||
: # command line
|
||||
: # input files
|
||||
: # requirements
|
||||
<define>TEST_REAL_CONCEPT
|
||||
<define>TEST_DATA=3
|
||||
: test_ibeta_inv_ab_real_concept3 ;
|
||||
run test_igamma.cpp ;
|
||||
run test_igamma_inv.cpp
|
||||
: # command line
|
||||
|
||||
@@ -363,21 +363,29 @@ void test_beta(T, const char* name)
|
||||
// The contents are as follows, each row of data contains
|
||||
// five items, input value a, input value b, integration limits x, beta(a, b, x) and ibeta(a, b, x):
|
||||
//
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 1)
|
||||
# include "ibeta_small_data.ipp"
|
||||
|
||||
do_test_beta(ibeta_small_data, name, "Incomplete Beta Function: Small Values");
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 2)
|
||||
# include "ibeta_data.ipp"
|
||||
|
||||
do_test_beta(ibeta_data, name, "Incomplete Beta Function: Medium Values");
|
||||
|
||||
#endif
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 3)
|
||||
# include "ibeta_large_data.ipp"
|
||||
|
||||
do_test_beta(ibeta_large_data, name, "Incomplete Beta Function: Large and Diverse Values");
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 4)
|
||||
# include "ibeta_int_data.ipp"
|
||||
|
||||
do_test_beta(ibeta_int_data, name, "Incomplete Beta Function: Small Integer Values");
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
@@ -278,21 +278,29 @@ void test_beta(T, const char* name)
|
||||
// The contents are as follows, each row of data contains
|
||||
// five items, input value a, input value b, integration limits x, beta(a, b, x) and ibeta(a, b, x):
|
||||
//
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 1)
|
||||
# include "ibeta_small_data.ipp"
|
||||
|
||||
test_inverses(ibeta_small_data);
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 2)
|
||||
# include "ibeta_data.ipp"
|
||||
|
||||
test_inverses(ibeta_data);
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 3)
|
||||
# include "ibeta_large_data.ipp"
|
||||
|
||||
test_inverses(ibeta_large_data);
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 4)
|
||||
# include "ibeta_inv_data.ipp"
|
||||
|
||||
test_inverses2(ibeta_inv_data, name, "Inverse incomplete beta");
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
||||
@@ -254,17 +254,25 @@ void test_beta(T, const char* name)
|
||||
//
|
||||
std::cout << "Running sanity checks for type " << name << std::endl;
|
||||
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 1)
|
||||
# include "ibeta_small_data.ipp"
|
||||
|
||||
test_inverses(ibeta_small_data);
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 2)
|
||||
# include "ibeta_data.ipp"
|
||||
|
||||
test_inverses(ibeta_data);
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_DATA) || (TEST_DATA == 3)
|
||||
# include "ibeta_large_data.ipp"
|
||||
|
||||
test_inverses(ibeta_large_data);
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_REAL_CONCEPT) || defined(FULL_TEST)
|
||||
#ifndef FULL_TEST
|
||||
if(boost::is_floating_point<T>::value){
|
||||
#endif
|
||||
@@ -280,6 +288,7 @@ void test_beta(T, const char* name)
|
||||
#ifndef FULL_TEST
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
int test_main(int, char* [])
|
||||
|
||||
Reference in New Issue
Block a user