mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Complete CI test with standalone mode (#680)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 5>, 36> data1 = {{
|
||||
static const std::array<std::array<T, 5>, 36> data1 = {{
|
||||
{{ SC_(0.0), SC_(0.0), SC_(0.0), SC_(1.0), SC_(1.0) }},
|
||||
{{ ldexp(T(1), -25), ldexp(T(1), -25), SC_(2.98023223876953080883700663838486782870427050521881839342311e-8), SC_(0.99999999999999955591079014993741669975171697261290223678373), SC_(0.99999999999999999999999999999960556954738949421406900774443) }},
|
||||
{{ -ldexp(T(1), -25), ldexp(T(1), -25), SC_(-2.98023223876953080883700663838486782870427050521881839342311e-8), SC_(0.99999999999999955591079014993741669975171697261290223678373), SC_(0.99999999999999999999999999999960556954738949421406900774443) }},
|
||||
|
||||
@@ -23,7 +23,7 @@ int main()
|
||||
# include "digamma_root_data.ipp"
|
||||
# include "digamma_small_data.ipp"
|
||||
# include "digamma_neg_data.ipp"
|
||||
static const boost::array<boost::array<T, 2>, 5> digamma_bugs = {{
|
||||
static const std::array<std::array<T, 2>, 5> digamma_bugs = {{
|
||||
// Test cases from Rocco Romeo:
|
||||
{{ static_cast<T>(std::ldexp(1.0, -100)), SC_(-1.26765060022822940149670320537657721566490153286060651209008e30) }},
|
||||
{{ static_cast<T>(-std::ldexp(1.0, -100)), SC_(1.26765060022822940149670320537542278433509846713939348790992e30) }},
|
||||
@@ -31,10 +31,10 @@ int main()
|
||||
{{ static_cast<T>(-1) + static_cast<T>(std::ldexp(1.0, -20)), SC_(-1.04857557721314249602848739817764518743062133735858753112190e6) }},
|
||||
{{ static_cast<T>(-1) - static_cast<T>(std::ldexp(1.0, -20)), SC_(1.04857642278181269259522681939281063878220298942888100442172e6) }},
|
||||
}};
|
||||
static const boost::array<boost::array<T, 2>, 40> digamma_integers = { {
|
||||
static const std::array<std::array<T, 2>, 40> digamma_integers = { {
|
||||
{ 1, SC_(-0.57721566490153286060651209008240243) }, { 2, SC_(0.42278433509846713939348790991759757) }, { 3, SC_(0.92278433509846713939348790991759757) }, { 4, SC_(1.2561176684318004727268212432509309) }, { 5, SC_(1.5061176684318004727268212432509309) }, { 6, SC_(1.7061176684318004727268212432509309) }, { 7, SC_(1.8727843350984671393934879099175976) }, { 8, SC_(2.0156414779556099965363450527747404) }, { 9, SC_(2.1406414779556099965363450527747404) }, { SC_(10.0), SC_(2.2517525890667211076474561638858515) }, { SC_(11.0), SC_(2.3517525890667211076474561638858515) }, { SC_(12.0), SC_(2.4426616799758120167383652547949424) }, { SC_(13.0), SC_(2.5259950133091453500716985881282758) }, { SC_(14.0), SC_(2.6029180902322222731486216650513527) }, { SC_(15.0), SC_(2.6743466616607937017200502364799241) }, { SC_(16.0), SC_(2.7410133283274603683867169031465908) }, { SC_(17.0), SC_(2.8035133283274603683867169031465908) }, { SC_(18.0), SC_(2.8623368577392250742690698443230614) }, { SC_(19.0), SC_(2.9178924132947806298246253998786169) }, { SC_(20.0), SC_(2.9705239922421490508772569788259854) }, { SC_(21.0), SC_(3.0205239922421490508772569788259854) }, { SC_(22.0), SC_(3.0681430398611966699248760264450330) }, { SC_(23.0), SC_(3.1135975853157421244703305718995784) }, { SC_(24.0), SC_(3.1570758461853073418616349197256654) }, { SC_(25.0), SC_(3.1987425128519740085283015863923321) }, { SC_(26.0), SC_(3.2387425128519740085283015863923321) }, { SC_(27.0), SC_(3.2772040513135124700667631248538705) }, { SC_(28.0), SC_(3.3142410883505495071038001618909076) }, { SC_(29.0), SC_(3.3499553740648352213895144476051933) }, { SC_(30.0), SC_(3.3844381326855248765619282407086415) }, { SC_(31.0), SC_(3.4177714660188582098952615740419749) }, { SC_(32.0), SC_(3.4500295305349872421533260901710071) }, { SC_(33.0), SC_(3.4812795305349872421533260901710071) }, { SC_(34.0), SC_(3.5115825608380175451836291204740374) }, { SC_(35.0), SC_(3.5409943255438998981248055910622727) }, { SC_(36.0), SC_(3.5695657541153284695533770196337013) }, { SC_(37.0), SC_(3.5973435318931062473311547974114791) }, { SC_(38.0), SC_(3.6243705589201332743581818244385061) }, { SC_(39.0), SC_(3.6506863483938174848844976139121903) }, { SC_(40.0), SC_(3.6763273740348431259101386395532160) }
|
||||
} };
|
||||
static const boost::array<boost::array<T, 2>, 41> digamma_half_integers = { {
|
||||
static const std::array<std::array<T, 2>, 41> digamma_half_integers = { {
|
||||
{ SC_(0.5), SC_(-1.9635100260214234794409763329987556) }, { SC_(1.5), SC_(0.036489973978576520559023667001244433) }, { SC_(2.5), SC_(0.70315664064524318722569033366791110) }, { SC_(3.5), SC_(1.1031566406452431872256903336679111) }, { SC_(4.5), SC_(1.3888709263595289015114046193821968) }, { SC_(5.5), SC_(1.6110931485817511237336268416044190) }, { SC_(6.5), SC_(1.7929113303999329419154450234226009) }, { SC_(7.5), SC_(1.9467574842460867880692911772687547) }, { SC_(8.5), SC_(2.0800908175794201214026245106020880) }, { SC_(9.5), SC_(2.1977378764029495331673303929550292) }, { SC_(10.5), SC_(2.3030010342976863752725935508497661) }, { SC_(11.5), SC_(2.3982391295357816133678316460878613) }, { SC_(12.5), SC_(2.4851956512749120481504403417400352) }, { SC_(13.5), SC_(2.5651956512749120481504403417400352) }, { SC_(14.5), SC_(2.6392697253489861222245144158141093) }, { SC_(15.5), SC_(2.7082352425903654325693420020210058) }, { SC_(16.5), SC_(2.7727513716226234970854710342790703) }, { SC_(17.5), SC_(2.8333574322286841031460770948851310) }, { SC_(18.5), SC_(2.8905002893715412460032199520279881) }, { SC_(19.5), SC_(2.9445543434255953000572740060820421) }, { SC_(20.5), SC_(2.9958363947076465821085560573640934) }, { SC_(21.5), SC_(3.0446168825125246308890438622421422) }, { SC_(22.5), SC_(3.0911285104195013750750903738700492) }, { SC_(23.5), SC_(3.1355729548639458195195348183144936) }, { SC_(24.5), SC_(3.1781261463533075216471943927825787) }, { SC_(25.5), SC_(3.2189424728839197665451535764560481) }, { SC_(26.5), SC_(3.2581581591584295704667222039070285) }, { SC_(27.5), SC_(3.2958940082150333440516278642843870) }, { SC_(28.5), SC_(3.3322576445786697076879915006480234) }, { SC_(29.5), SC_(3.3673453638769153217230792199462690) }, { SC_(30.5), SC_(3.4012436689616610844349436267259300) }, { SC_(31.5), SC_(3.4340305542075627237792059218078972) }, { SC_(32.5), SC_(3.4657765859535944698109519535539290) }, { SC_(33.5), SC_(3.4965458167228252390417211843231597) }, { SC_(34.5), SC_(3.5263965629914819554596316320843538) }, { SC_(35.5), SC_(3.5553820702378587670538345306350784) }, { SC_(36.5), SC_(3.5835510843223658093073556573956418) }, { SC_(37.5), SC_(3.6109483445963384120470816847929021) }, { SC_(38.5), SC_(3.6376150112630050787137483514595687) }, { SC_(39.5), SC_(3.6635890372370310527397223774335947) }, { SC_(40.5), SC_(3.6889054929332335843852919976867593) }
|
||||
} };
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 5>, 36> data1 = {{
|
||||
static const std::array<std::array<T, 5>, 36> data1 = {{
|
||||
{{ SC_(0.0), SC_(0.0), SC_(0.0), SC_(1.0), SC_(1.0) }},
|
||||
{{ ldexp(T(1), -25), ldexp(T(1), -25), SC_(2.98023223876953080883700663838486782870427050521881839342311e-8), SC_(0.99999999999999955591079014993741669975171697261290223678373), SC_(0.99999999999999999999999999999960556954738949421406900774443) }},
|
||||
{{ -ldexp(T(1), -25), ldexp(T(1), -25), SC_(-2.98023223876953080883700663838486782870427050521881839342311e-8), SC_(0.99999999999999955591079014993741669975171697261290223678373), SC_(0.99999999999999999999999999999960556954738949421406900774443) }},
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 3>, 19> data1 = { {
|
||||
static const std::array<std::array<T, 3>, 19> data1 = { {
|
||||
{ { SC_(0.0), SC_(0.0), SC_(0.0) } },
|
||||
{ { SC_(-10.0), SC_(0.0), SC_(-10.0) } },
|
||||
{ { SC_(-1.0), SC_(-1.0), SC_(-1.2261911708835170708130609674719067527242483502207) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 2>, 9> data2 = { {
|
||||
static const std::array<std::array<T, 2>, 9> data2 = { {
|
||||
{ { SC_(0.0), SC_(1.5707963267948966192313216916397514420985846996876) } },
|
||||
{ { SC_(0.125), SC_(1.5769867712158131421244030532288080803822271060839) } },
|
||||
{ { SC_(0.25), SC_(1.5962422221317835101489690714979498795055744578951) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 3>, 10> data1 = { {
|
||||
static const std::array<std::array<T, 3>, 10> data1 = { {
|
||||
{ { SC_(0.0), SC_(0.0), SC_(0.0) } },
|
||||
{ { SC_(-10.0), SC_(0.0), SC_(-10.0) } },
|
||||
{ { SC_(-1.0), SC_(-1.0), SC_(-0.84147098480789650665250232163029899962256306079837) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 2>, 10> data2 = { {
|
||||
static const std::array<std::array<T, 2>, 10> data2 = { {
|
||||
{ { SC_(-1.0), SC_(1.0) } },
|
||||
{ { SC_(0.0), SC_(1.5707963267948966192313216916397514420985846996876) } },
|
||||
{ { T(100) / 1024, SC_(1.5670445330545086723323795143598956428788609133377) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 4>, 65> data1 = { {
|
||||
static const std::array<std::array<T, 4>, 65> data1 = { {
|
||||
{ { SC_(1.0), SC_(-1.0), SC_(0.0), SC_(-1.557407724654902230506974807458360173087) } },
|
||||
{ { SC_(0.0), SC_(-4.0), SC_(0.4), SC_(-4.153623371196831087495427530365430979011) } },
|
||||
{ { SC_(0.0), SC_(8.0), SC_(-0.6), SC_(8.935930619078575123490612395578518914416) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 3>, 10> i0_data = { {
|
||||
static const std::array<std::array<T, 3>, 10> i0_data = { {
|
||||
{ { SC_(0.0), SC_(0.0), SC_(1.0) } },
|
||||
{ { SC_(0.0), SC_(1.0), SC_(1.26606587775200833559824462521471753760767031135496220680814) } },
|
||||
{ { SC_(0.0), SC_(-2.0), SC_(2.27958530233606726743720444081153335328584110278545905407084) } },
|
||||
@@ -29,7 +29,7 @@ static const boost::array<boost::array<T, 3>, 10> i0_data = { {
|
||||
{ { SC_(0.0), SC_(100.0), SC_(1.07375170713107382351972085760349466128840319332527279540154e42) } },
|
||||
{ { SC_(0.0), SC_(200.0), SC_(2.03968717340972461954167312677945962233267573614834337894328e85) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 10> i1_data = { {
|
||||
static const std::array<std::array<T, 3>, 10> i1_data = { {
|
||||
{ { SC_(1.0), SC_(0.0), SC_(0.0) } },
|
||||
{ { SC_(1.0), SC_(1.0), SC_(0.565159103992485027207696027609863307328899621621092009480294) } },
|
||||
{ { SC_(1.0), SC_(-2.0), SC_(-1.59063685463732906338225442499966624795447815949553664713229) } },
|
||||
@@ -41,7 +41,7 @@ static const boost::array<boost::array<T, 3>, 10> i1_data = { {
|
||||
{ { SC_(1.0), SC_(100.0), SC_(1.06836939033816248120614576322429526544612284405623226965918e42) } },
|
||||
{ { SC_(1.0), SC_(200.0), SC_(2.03458154933206270342742797713906950389661161681122964159220e85) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 11> in_data = { {
|
||||
static const std::array<std::array<T, 3>, 11> in_data = { {
|
||||
{ { SC_(-2.0), SC_(0.0), SC_(0.0) } },
|
||||
{ { SC_(2.0), T(SC_(1.0)) / (1024 * 1024), SC_(1.13686837721624646204093977095674566928522671779753217215467e-13) } },
|
||||
{ { SC_(5.0), SC_(10.0), SC_(777.188286403259959907293484802339632852674154572666041953297) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 3>, 10> iv_data = { {
|
||||
static const std::array<std::array<T, 3>, 10> iv_data = { {
|
||||
{ { SC_(2.25), T(1) / (1024 * 1024), SC_(2.34379212133481347189068464680335815256364262507955635911656e-15) } },
|
||||
{ { SC_(5.5), SC_(3.125), SC_(0.0583514045989371500460946536220735787163510569634133670181210) } },
|
||||
{ { T(-5) + T(1) / 1024, SC_(2.125), SC_(0.0267920938009571023702933210070984416052633027166975342895062) } },
|
||||
@@ -29,7 +29,7 @@ static const boost::array<boost::array<T, 3>, 10> iv_data = { {
|
||||
{ { T(144794) / 1024, SC_(200.0), SC_(2.23699739472246928794922868978337381373643889659337595319774e64) } },
|
||||
{ { T(-144794) / 1024, SC_(100.0), SC_(2066.27694672763190927440969155740243346136463461655104698748) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 5> iv_large_data = { {
|
||||
static const std::array<std::array<T, 3>, 5> iv_large_data = { {
|
||||
// Bug report https://svn.boost.org/trac/boost/ticket/5560:
|
||||
{ { SC_(-1.0), static_cast<T>(ldexp(0.5, -512)), SC_(1.86458518280005168582274132886573345934411788365010172356788e-155) } },
|
||||
{ { SC_(1.0), static_cast<T>(ldexp(0.5, -512)), SC_(1.86458518280005168582274132886573345934411788365010172356788e-155) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<typename table_type<T>::type, 3>, 8> j0_data = { {
|
||||
static const std::array<std::array<typename table_type<T>::type, 3>, 8> j0_data = { {
|
||||
{ { SC_(0.0), SC_(0.0), SC_(1.0) } },
|
||||
{ { SC_(0.0), SC_(1.0), SC_(0.7651976865579665514497175261026632209093) } },
|
||||
{ { SC_(0.0), SC_(-2.0), SC_(0.2238907791412356680518274546499486258252) } },
|
||||
@@ -27,7 +27,7 @@ static const boost::array<boost::array<typename table_type<T>::type, 3>, 8> j0_d
|
||||
{ { SC_(0.0), SC_(1e-10), SC_(0.999999999999999999997500000000000000000) } },
|
||||
{ { SC_(0.0), SC_(-1e+01), SC_(-0.2459357644513483351977608624853287538296) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 6> j0_tricky = { {
|
||||
static const std::array<std::array<T, 3>, 6> j0_tricky = { {
|
||||
// Big numbers make the accuracy of std::sin the limiting factor:
|
||||
{ { SC_(0.0), SC_(1e+03), SC_(0.02478668615242017456133073111569370878617) } },
|
||||
{ { SC_(0.0), SC_(1e+05), SC_(-0.001719201116235972192570601477073201747532) } },
|
||||
@@ -38,7 +38,7 @@ static const boost::array<boost::array<T, 3>, 6> j0_tricky = { {
|
||||
{ { SC_(0.0), T(12364320.0) / (1024 * 1024), SC_(-3.53017140778223781420794006033810387155048392363051866610931e-9) } }
|
||||
} };
|
||||
|
||||
static const boost::array<boost::array<typename table_type<T>::type, 3>, 8> j1_data = { {
|
||||
static const std::array<std::array<typename table_type<T>::type, 3>, 8> j1_data = { {
|
||||
{ { SC_(1.0), SC_(0.0), SC_(0.0) } },
|
||||
{ { SC_(1.0), SC_(1.0), SC_(0.4400505857449335159596822037189149131274) } },
|
||||
{ { SC_(1.0), SC_(-2.0), SC_(-0.5767248077568733872024482422691370869203) } },
|
||||
@@ -48,7 +48,7 @@ static const boost::array<boost::array<typename table_type<T>::type, 3>, 8> j1_d
|
||||
{ { SC_(1.0), SC_(1e-10), SC_(4.999999999999999999993750000000000000000e-11) } },
|
||||
{ { SC_(1.0), SC_(-1e+01), SC_(-4.347274616886143666974876802585928830627e-02) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 5> j1_tricky = { {
|
||||
static const std::array<std::array<T, 3>, 5> j1_tricky = { {
|
||||
// Big numbers make the accuracy of std::sin the limiting factor:
|
||||
{ { SC_(1.0), SC_(1e+03), SC_(4.728311907089523917576071901216916285418e-03) } },
|
||||
{ { SC_(1.0), SC_(1e+05), SC_(1.846757562882567716362123967114215743694e-03) } },
|
||||
@@ -58,7 +58,7 @@ static const boost::array<boost::array<T, 3>, 5> j1_tricky = { {
|
||||
{ { SC_(1.0), T(10667654) / (1024 * 1024), SC_(1.24591331097191900488116495350277530373473085499043086981229e-7) } },
|
||||
} };
|
||||
|
||||
static const boost::array<boost::array<typename table_type<T>::type, 3>, 17> jn_data = { {
|
||||
static const std::array<std::array<typename table_type<T>::type, 3>, 17> jn_data = { {
|
||||
// This first one is a modified test case from https://svn.boost.org/trac/boost/ticket/2733
|
||||
{ { SC_(-1.0), SC_(1.25), SC_(-0.510623260319880467069474837274910375352924050139633057168856) } },
|
||||
{ { SC_(2.0), SC_(0.0), SC_(0.0) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 3>, 21> jv_data = { {
|
||||
static const std::array<std::array<T, 3>, 21> jv_data = { {
|
||||
//SC_(-2.4), {{ SC_(0.0), std::numeric_limits<T>::infinity() }},
|
||||
{ { T(22.5), T(0.0), SC_(0.0) } },
|
||||
{ { T(2457.0) / 1024, T(1.0) / 1024, SC_(3.80739920118603335646474073457326714709615200130620574875292e-9) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 3>, 9> k0_data = { {
|
||||
static const std::array<std::array<T, 3>, 9> k0_data = { {
|
||||
{ { SC_(0.0), SC_(1.0), SC_(0.421024438240708333335627379212609036136219748226660472298970) } },
|
||||
{ { SC_(0.0), SC_(2.0), SC_(0.113893872749533435652719574932481832998326624388808882892530) } },
|
||||
{ { SC_(0.0), SC_(4.0), SC_(0.0111596760858530242697451959798334892250090238884743405382553) } },
|
||||
@@ -28,7 +28,7 @@ static const boost::array<boost::array<T, 3>, 9> k0_data = { {
|
||||
{ { SC_(0.0), SC_(50.0), SC_(3.41016774978949551392067551235295223184502537762334808993276e-23) } },
|
||||
{ { SC_(0.0), SC_(100.0), SC_(4.65662822917590201893900528948388635580753948544211387402671e-45) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 9> k1_data = { {
|
||||
static const std::array<std::array<T, 3>, 9> k1_data = { {
|
||||
{ { SC_(1.0), SC_(1.0), SC_(0.601907230197234574737540001535617339261586889968106456017768) } },
|
||||
{ { SC_(1.0), SC_(2.0), SC_(0.139865881816522427284598807035411023887234584841515530384442) } },
|
||||
{ { SC_(1.0), SC_(4.0), SC_(0.0124834988872684314703841799808060684838415849886258457917076) } },
|
||||
@@ -39,7 +39,7 @@ static const boost::array<boost::array<T, 3>, 9> k1_data = { {
|
||||
{ { SC_(1.0), SC_(50.0), SC_(3.44410222671755561259185303591267155099677251348256880221927e-23) } },
|
||||
{ { SC_(1.0), SC_(100.0), SC_(4.67985373563690928656254424202433530797494354694335352937465e-45) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 9> kn_data = { {
|
||||
static const std::array<std::array<T, 3>, 9> kn_data = { {
|
||||
{ { SC_(2.0), T(std::ldexp(1.0, -30)), SC_(2.30584300921369395150000000000000000234841952009593636868109e18) } },
|
||||
{ { SC_(5.0), SC_(10.0), SC_(0.0000575418499853122792763740236992723196597629124356739596921536) } },
|
||||
{ { SC_(-5.0), SC_(100.0), SC_(5.27325611329294989461777188449044716451716555009882448801072e-45) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 3>, 11> kv_data = { {
|
||||
static const std::array<std::array<T, 3>, 11> kv_data = { {
|
||||
{ { SC_(0.5), SC_(0.875), SC_(0.558532231646608646115729767013630967055657943463362504577189) } },
|
||||
{ { SC_(0.5), SC_(1.125), SC_(0.383621010650189547146769320487006220295290256657827220786527) } },
|
||||
{ { SC_(2.25), T(std::ldexp(1.0, -30)), SC_(5.62397392719283271332307799146649700147907612095185712015604e20) } },
|
||||
@@ -30,7 +30,7 @@ static const boost::array<boost::array<T, 3>, 11> kv_data = { {
|
||||
{ { T(144793) / 1024, SC_(200.0), SC_(9.11950412043225432171915100042647230802198254567007382956336e-68) } },
|
||||
{ { T(-144793) / 1024, SC_(50.0), SC_(1.30185229717525025165362673848737761549946548375142378172956e42) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 5> kv_large_data = { {
|
||||
static const std::array<std::array<T, 3>, 5> kv_large_data = { {
|
||||
// Bug report https://svn.boost.org/trac/boost/ticket/5560:
|
||||
{ { SC_(-1.0), static_cast<T>(ldexp(0.5, -512)), SC_(2.68156158598851941991480499964116922549587316411847867554471e154) } },
|
||||
{ { SC_(1.0), static_cast<T>(ldexp(0.5, -512)), SC_(2.68156158598851941991480499964116922549587316411847867554471e154) } },
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 5>, 36> data1 = {{
|
||||
static const std::array<std::array<T, 5>, 36> data1 = {{
|
||||
{{ SC_(0.0), SC_(0.0), SC_(0.0), SC_(1.0), SC_(1.0) }},
|
||||
{{ ldexp(T(1), -25), ldexp(T(1), -25), SC_(2.98023223876953080883700663838486782870427050521881839342311e-8), SC_(0.99999999999999955591079014993741669975171697261290223678373), SC_(0.99999999999999999999999999999960556954738949421406900774443) }},
|
||||
{{ -ldexp(T(1), -25), ldexp(T(1), -25), SC_(-2.98023223876953080883700663838486782870427050521881839342311e-8), SC_(0.99999999999999955591079014993741669975171697261290223678373), SC_(0.99999999999999999999999999999960556954738949421406900774443) }},
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<typename table_type<T>::type, 3>, 9> y0_data = { {
|
||||
static const std::array<std::array<typename table_type<T>::type, 3>, 9> y0_data = { {
|
||||
{ { SC_(0.0), SC_(1.0), SC_(0.0882569642156769579829267660235151628278175230906755467110438) } },
|
||||
{ { SC_(0.0), SC_(2.0), SC_(0.510375672649745119596606592727157873268139227085846135571839) } },
|
||||
{ { SC_(0.0), SC_(4.0), SC_(-0.0169407393250649919036351344471532182404925898980149027169321) } },
|
||||
@@ -28,7 +28,7 @@ static const boost::array<boost::array<typename table_type<T>::type, 3>, 9> y0_d
|
||||
{ { SC_(0.0), SC_(1e+03), SC_(0.00471591797762281339977326146566525500985900489680197718528000) } },
|
||||
{ { SC_(0.0), SC_(1e+05), SC_(0.00184676615886506410434074102431546125884886798090392516843524) } }
|
||||
} };
|
||||
static const boost::array<boost::array<typename table_type<T>::type, 3>, 9> y1_data = { {
|
||||
static const std::array<std::array<typename table_type<T>::type, 3>, 9> y1_data = { {
|
||||
{ { SC_(1.0), SC_(1.0), SC_(-0.781212821300288716547150000047964820549906390716444607843833) } },
|
||||
{ { SC_(1.0), SC_(2.0), SC_(-0.107032431540937546888370772277476636687480898235053860525795) } },
|
||||
{ { SC_(1.0), SC_(4.0), SC_(0.397925710557100005253979972450791852271189181622908340876586) } },
|
||||
@@ -39,7 +39,7 @@ static const boost::array<boost::array<typename table_type<T>::type, 3>, 9> y1_d
|
||||
{ { SC_(1.0), SC_(1e+03), SC_(-0.0247843312923517789148623560971412909386318548648705287583490) } },
|
||||
{ { SC_(1.0), SC_(1e+05), SC_(0.00171921035008825630099494523539897102954509504993494957572726) } }
|
||||
} };
|
||||
static const boost::array<boost::array<typename table_type<T>::type, 3>, 10> yn_data = { {
|
||||
static const std::array<std::array<typename table_type<T>::type, 3>, 10> yn_data = { {
|
||||
{ { SC_(2.0), SC_(1e-20), SC_(-1.27323954473516268615107010698011489627570899691226996904849e40) } },
|
||||
{ { SC_(5.0), SC_(10.0), SC_(0.135403047689362303197029014762241709088405766746419538495983) } },
|
||||
{ { SC_(-5.0), SC_(1e+06), SC_(0.000331052088322609048503535570014688967096938338061796192422114) } },
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
typedef double T;
|
||||
#define SC_(x) static_cast<double>(x)
|
||||
static const boost::array<boost::array<T, 3>, 11> yv_data = { {
|
||||
static const std::array<std::array<T, 3>, 11> yv_data = { {
|
||||
//SC_(2.25), {{ SC_(1.0) / 1024, SC_(-1.01759203636941035147948317764932151601257765988969544340275e7) }},
|
||||
{ { SC_(0.5), T(1) / (1024 * 1024), SC_(-817.033790261762580469303126467917092806755460418223776544122) } },
|
||||
{ { SC_(5.5), SC_(3.125), SC_(-2.61489440328417468776474188539366752698192046890955453259866) } },
|
||||
@@ -31,7 +31,7 @@ static const boost::array<boost::array<T, 3>, 11> yv_data = { {
|
||||
{ { SC_(8.5), boost::math::constants::pi<T>() * 4, SC_(0.257086543428224355151772807588810984369026142375675714560864) } },
|
||||
{ { SC_(-8.5), boost::math::constants::pi<T>() * 4, SC_(0.0436807946352780974532519564114026730332781693877984686758680) } },
|
||||
} };
|
||||
static const boost::array<boost::array<T, 3>, 7> yv_large_data = { {
|
||||
static const std::array<std::array<T, 3>, 7> yv_large_data = { {
|
||||
// Bug report https://svn.boost.org/trac/boost/ticket/5560:
|
||||
{ { SC_(0.5), static_cast<T>(std::ldexp(0.5, -683)), SC_(-7.14823099969225685526188875418476476336424046896822867989728e102) } },
|
||||
{ { SC_(-0.5), static_cast<T>(std::ldexp(0.5, -683)), SC_(8.90597649117647254543282704099383321071493400182381039079219e-104) } },
|
||||
|
||||
Reference in New Issue
Block a user