12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829 |
- // math_fwd.hpp
- // TODO revise completely for new distribution classes.
- // Copyright Paul A. Bristow 2006.
- // Copyright John Maddock 2006.
- // Use, modification and distribution are subject to the
- // Boost Software License, Version 1.0.
- // (See accompanying file LICENSE_1_0.txt
- // or copy at http://www.boost.org/LICENSE_1_0.txt)
- // Omnibus list of forward declarations of math special functions.
- // IT = Integer type.
- // RT = Real type (built-in floating-point types, float, double, long double) & User Defined Types
- // AT = Integer or Real type
- #ifndef BOOST_MATH_SPECIAL_MATH_FWD_HPP
- #define BOOST_MATH_SPECIAL_MATH_FWD_HPP
- #ifdef _MSC_VER
- #pragma once
- #endif
- #include <vector>
- #include <complex>
- #include <type_traits>
- #include <boost/math/special_functions/detail/round_fwd.hpp>
- #include <boost/math/tools/promotion.hpp> // for argument promotion.
- #include <boost/math/policies/policy.hpp>
- #define BOOST_NO_MACRO_EXPAND /**/
- namespace boost
- {
- namespace math
- { // Math functions (in roughly alphabetic order).
- // Beta functions.
- template <class RT1, class RT2>
- typename tools::promote_args<RT1, RT2>::type
- beta(RT1 a, RT2 b); // Beta function (2 arguments).
- template <class RT1, class RT2, class A>
- typename tools::promote_args<RT1, RT2, A>::type
- beta(RT1 a, RT2 b, A x); // Beta function (3 arguments).
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- beta(RT1 a, RT2 b, RT3 x, const Policy& pol); // Beta function (3 arguments).
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- betac(RT1 a, RT2 b, RT3 x);
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- betac(RT1 a, RT2 b, RT3 x, const Policy& pol);
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta(RT1 a, RT2 b, RT3 x); // Incomplete beta function.
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta(RT1 a, RT2 b, RT3 x, const Policy& pol); // Incomplete beta function.
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibetac(RT1 a, RT2 b, RT3 x); // Incomplete beta complement function.
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibetac(RT1 a, RT2 b, RT3 x, const Policy& pol); // Incomplete beta complement function.
- template <class T1, class T2, class T3, class T4>
- typename tools::promote_args<T1, T2, T3, T4>::type
- ibeta_inv(T1 a, T2 b, T3 p, T4* py);
- template <class T1, class T2, class T3, class T4, class Policy>
- typename tools::promote_args<T1, T2, T3, T4>::type
- ibeta_inv(T1 a, T2 b, T3 p, T4* py, const Policy& pol);
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta_inv(RT1 a, RT2 b, RT3 p); // Incomplete beta inverse function.
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta_inv(RT1 a, RT2 b, RT3 p, const Policy&); // Incomplete beta inverse function.
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta_inva(RT1 a, RT2 b, RT3 p); // Incomplete beta inverse function.
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta_inva(RT1 a, RT2 b, RT3 p, const Policy&); // Incomplete beta inverse function.
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta_invb(RT1 a, RT2 b, RT3 p); // Incomplete beta inverse function.
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta_invb(RT1 a, RT2 b, RT3 p, const Policy&); // Incomplete beta inverse function.
- template <class T1, class T2, class T3, class T4>
- typename tools::promote_args<T1, T2, T3, T4>::type
- ibetac_inv(T1 a, T2 b, T3 q, T4* py);
- template <class T1, class T2, class T3, class T4, class Policy>
- typename tools::promote_args<T1, T2, T3, T4>::type
- ibetac_inv(T1 a, T2 b, T3 q, T4* py, const Policy& pol);
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibetac_inv(RT1 a, RT2 b, RT3 q); // Incomplete beta complement inverse function.
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibetac_inv(RT1 a, RT2 b, RT3 q, const Policy&); // Incomplete beta complement inverse function.
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibetac_inva(RT1 a, RT2 b, RT3 q); // Incomplete beta complement inverse function.
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibetac_inva(RT1 a, RT2 b, RT3 q, const Policy&); // Incomplete beta complement inverse function.
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibetac_invb(RT1 a, RT2 b, RT3 q); // Incomplete beta complement inverse function.
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibetac_invb(RT1 a, RT2 b, RT3 q, const Policy&); // Incomplete beta complement inverse function.
- template <class RT1, class RT2, class RT3>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta_derivative(RT1 a, RT2 b, RT3 x); // derivative of incomplete beta
- template <class RT1, class RT2, class RT3, class Policy>
- typename tools::promote_args<RT1, RT2, RT3>::type
- ibeta_derivative(RT1 a, RT2 b, RT3 x, const Policy& pol); // derivative of incomplete beta
- // Binomial:
- template <class T, class Policy>
- T binomial_coefficient(unsigned n, unsigned k, const Policy& pol);
- template <class T>
- T binomial_coefficient(unsigned n, unsigned k);
- // erf & erfc error functions.
- template <class RT> // Error function.
- typename tools::promote_args<RT>::type erf(RT z);
- template <class RT, class Policy> // Error function.
- typename tools::promote_args<RT>::type erf(RT z, const Policy&);
- template <class RT>// Error function complement.
- typename tools::promote_args<RT>::type erfc(RT z);
- template <class RT, class Policy>// Error function complement.
- typename tools::promote_args<RT>::type erfc(RT z, const Policy&);
- template <class RT>// Error function inverse.
- typename tools::promote_args<RT>::type erf_inv(RT z);
- template <class RT, class Policy>// Error function inverse.
- typename tools::promote_args<RT>::type erf_inv(RT z, const Policy& pol);
- template <class RT>// Error function complement inverse.
- typename tools::promote_args<RT>::type erfc_inv(RT z);
- template <class RT, class Policy>// Error function complement inverse.
- typename tools::promote_args<RT>::type erfc_inv(RT z, const Policy& pol);
- // Polynomials:
- template <class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type
- legendre_next(unsigned l, T1 x, T2 Pl, T3 Plm1);
- template <class T>
- typename tools::promote_args<T>::type
- legendre_p(int l, T x);
- template <class T>
- typename tools::promote_args<T>::type
- legendre_p_prime(int l, T x);
- template <class T, class Policy>
- inline std::vector<T> legendre_p_zeros(int l, const Policy& pol);
- template <class T>
- inline std::vector<T> legendre_p_zeros(int l);
- #if !BOOST_WORKAROUND(BOOST_MSVC, <= 1310)
- template <class T, class Policy>
- typename std::enable_if<policies::is_policy<Policy>::value, typename tools::promote_args<T>::type>::type
- legendre_p(int l, T x, const Policy& pol);
- template <class T, class Policy>
- inline typename std::enable_if<policies::is_policy<Policy>::value, typename tools::promote_args<T>::type>::type
- legendre_p_prime(int l, T x, const Policy& pol);
- #endif
- template <class T>
- typename tools::promote_args<T>::type
- legendre_q(unsigned l, T x);
- #if !BOOST_WORKAROUND(BOOST_MSVC, <= 1310)
- template <class T, class Policy>
- typename std::enable_if<policies::is_policy<Policy>::value, typename tools::promote_args<T>::type>::type
- legendre_q(unsigned l, T x, const Policy& pol);
- #endif
- template <class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type
- legendre_next(unsigned l, unsigned m, T1 x, T2 Pl, T3 Plm1);
- template <class T>
- typename tools::promote_args<T>::type
- legendre_p(int l, int m, T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type
- legendre_p(int l, int m, T x, const Policy& pol);
- template <class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type
- laguerre_next(unsigned n, T1 x, T2 Ln, T3 Lnm1);
- template <class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type
- laguerre_next(unsigned n, unsigned l, T1 x, T2 Pl, T3 Plm1);
- template <class T>
- typename tools::promote_args<T>::type
- laguerre(unsigned n, T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type
- laguerre(unsigned n, unsigned m, T x, const Policy& pol);
- template <class T1, class T2>
- struct laguerre_result
- {
- using type = typename std::conditional<
- policies::is_policy<T2>::value,
- typename tools::promote_args<T1>::type,
- typename tools::promote_args<T2>::type
- >::type;
- };
- template <class T1, class T2>
- typename laguerre_result<T1, T2>::type
- laguerre(unsigned n, T1 m, T2 x);
- template <class T>
- typename tools::promote_args<T>::type
- hermite(unsigned n, T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type
- hermite(unsigned n, T x, const Policy& pol);
- template <class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type
- hermite_next(unsigned n, T1 x, T2 Hn, T3 Hnm1);
- template<class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type chebyshev_next(T1 const & x, T2 const & Tn, T3 const & Tn_1);
- template <class Real, class Policy>
- typename tools::promote_args<Real>::type
- chebyshev_t(unsigned n, Real const & x, const Policy&);
- template<class Real>
- typename tools::promote_args<Real>::type chebyshev_t(unsigned n, Real const & x);
-
- template <class Real, class Policy>
- typename tools::promote_args<Real>::type
- chebyshev_u(unsigned n, Real const & x, const Policy&);
- template<class Real>
- typename tools::promote_args<Real>::type chebyshev_u(unsigned n, Real const & x);
- template <class Real, class Policy>
- typename tools::promote_args<Real>::type
- chebyshev_t_prime(unsigned n, Real const & x, const Policy&);
- template<class Real>
- typename tools::promote_args<Real>::type chebyshev_t_prime(unsigned n, Real const & x);
- template<class Real, class T2>
- Real chebyshev_clenshaw_recurrence(const Real* const c, size_t length, const T2& x);
- template <class T1, class T2>
- std::complex<typename tools::promote_args<T1, T2>::type>
- spherical_harmonic(unsigned n, int m, T1 theta, T2 phi);
- template <class T1, class T2, class Policy>
- std::complex<typename tools::promote_args<T1, T2>::type>
- spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const Policy& pol);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type
- spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type
- spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi, const Policy& pol);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type
- spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type
- spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi, const Policy& pol);
- // Elliptic integrals:
- template <class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type
- ellint_rf(T1 x, T2 y, T3 z);
- template <class T1, class T2, class T3, class Policy>
- typename tools::promote_args<T1, T2, T3>::type
- ellint_rf(T1 x, T2 y, T3 z, const Policy& pol);
- template <class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type
- ellint_rd(T1 x, T2 y, T3 z);
- template <class T1, class T2, class T3, class Policy>
- typename tools::promote_args<T1, T2, T3>::type
- ellint_rd(T1 x, T2 y, T3 z, const Policy& pol);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type
- ellint_rc(T1 x, T2 y);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type
- ellint_rc(T1 x, T2 y, const Policy& pol);
- template <class T1, class T2, class T3, class T4>
- typename tools::promote_args<T1, T2, T3, T4>::type
- ellint_rj(T1 x, T2 y, T3 z, T4 p);
- template <class T1, class T2, class T3, class T4, class Policy>
- typename tools::promote_args<T1, T2, T3, T4>::type
- ellint_rj(T1 x, T2 y, T3 z, T4 p, const Policy& pol);
- template <class T1, class T2, class T3>
- typename tools::promote_args<T1, T2, T3>::type
- ellint_rg(T1 x, T2 y, T3 z);
- template <class T1, class T2, class T3, class Policy>
- typename tools::promote_args<T1, T2, T3>::type
- ellint_rg(T1 x, T2 y, T3 z, const Policy& pol);
- template <typename T>
- typename tools::promote_args<T>::type ellint_2(T k);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type ellint_2(T1 k, T2 phi);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type ellint_2(T1 k, T2 phi, const Policy& pol);
- template <typename T>
- typename tools::promote_args<T>::type ellint_1(T k);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type ellint_1(T1 k, T2 phi);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type ellint_1(T1 k, T2 phi, const Policy& pol);
- template <typename T>
- typename tools::promote_args<T>::type ellint_d(T k);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type ellint_d(T1 k, T2 phi);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type ellint_d(T1 k, T2 phi, const Policy& pol);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type jacobi_zeta(T1 k, T2 phi);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type jacobi_zeta(T1 k, T2 phi, const Policy& pol);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type heuman_lambda(T1 k, T2 phi);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type heuman_lambda(T1 k, T2 phi, const Policy& pol);
- namespace detail{
- template <class T, class U, class V>
- struct ellint_3_result
- {
- using type = typename std::conditional<
- policies::is_policy<V>::value,
- typename tools::promote_args<T, U>::type,
- typename tools::promote_args<T, U, V>::type
- >::type;
- };
- } // namespace detail
- template <class T1, class T2, class T3>
- typename detail::ellint_3_result<T1, T2, T3>::type ellint_3(T1 k, T2 v, T3 phi);
- template <class T1, class T2, class T3, class Policy>
- typename tools::promote_args<T1, T2, T3>::type ellint_3(T1 k, T2 v, T3 phi, const Policy& pol);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type ellint_3(T1 k, T2 v);
- // Factorial functions.
- // Note: not for integral types, at present.
- template <class RT>
- struct max_factorial;
- template <class RT>
- RT factorial(unsigned int);
- template <class RT, class Policy>
- RT factorial(unsigned int, const Policy& pol);
- template <class RT>
- RT unchecked_factorial(unsigned int BOOST_MATH_APPEND_EXPLICIT_TEMPLATE_TYPE(RT));
- template <class RT>
- RT double_factorial(unsigned i);
- template <class RT, class Policy>
- RT double_factorial(unsigned i, const Policy& pol);
- template <class RT>
- typename tools::promote_args<RT>::type falling_factorial(RT x, unsigned n);
- template <class RT, class Policy>
- typename tools::promote_args<RT>::type falling_factorial(RT x, unsigned n, const Policy& pol);
- template <class RT>
- typename tools::promote_args<RT>::type rising_factorial(RT x, int n);
- template <class RT, class Policy>
- typename tools::promote_args<RT>::type rising_factorial(RT x, int n, const Policy& pol);
- // Gamma functions.
- template <class RT>
- typename tools::promote_args<RT>::type tgamma(RT z);
- template <class RT>
- typename tools::promote_args<RT>::type tgamma1pm1(RT z);
- template <class RT, class Policy>
- typename tools::promote_args<RT>::type tgamma1pm1(RT z, const Policy& pol);
- template <class RT1, class RT2>
- typename tools::promote_args<RT1, RT2>::type tgamma(RT1 a, RT2 z);
- template <class RT1, class RT2, class Policy>
- typename tools::promote_args<RT1, RT2>::type tgamma(RT1 a, RT2 z, const Policy& pol);
- template <class RT>
- typename tools::promote_args<RT>::type lgamma(RT z, int* sign);
- template <class RT, class Policy>
- typename tools::promote_args<RT>::type lgamma(RT z, int* sign, const Policy& pol);
- template <class RT>
- typename tools::promote_args<RT>::type lgamma(RT x);
- template <class RT, class Policy>
- typename tools::promote_args<RT>::type lgamma(RT x, const Policy& pol);
- template <class RT1, class RT2>
- typename tools::promote_args<RT1, RT2>::type tgamma_lower(RT1 a, RT2 z);
- template <class RT1, class RT2, class Policy>
- typename tools::promote_args<RT1, RT2>::type tgamma_lower(RT1 a, RT2 z, const Policy&);
- template <class RT1, class RT2>
- typename tools::promote_args<RT1, RT2>::type gamma_q(RT1 a, RT2 z);
- template <class RT1, class RT2, class Policy>
- typename tools::promote_args<RT1, RT2>::type gamma_q(RT1 a, RT2 z, const Policy&);
- template <class RT1, class RT2>
- typename tools::promote_args<RT1, RT2>::type gamma_p(RT1 a, RT2 z);
- template <class RT1, class RT2, class Policy>
- typename tools::promote_args<RT1, RT2>::type gamma_p(RT1 a, RT2 z, const Policy&);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type tgamma_delta_ratio(T1 z, T2 delta);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type tgamma_delta_ratio(T1 z, T2 delta, const Policy&);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type tgamma_ratio(T1 a, T2 b);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type tgamma_ratio(T1 a, T2 b, const Policy&);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type gamma_p_derivative(T1 a, T2 x);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type gamma_p_derivative(T1 a, T2 x, const Policy&);
- // gamma inverse.
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type gamma_p_inv(T1 a, T2 p);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type gamma_p_inva(T1 a, T2 p, const Policy&);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type gamma_p_inva(T1 a, T2 p);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type gamma_p_inv(T1 a, T2 p, const Policy&);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type gamma_q_inv(T1 a, T2 q);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type gamma_q_inv(T1 a, T2 q, const Policy&);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type gamma_q_inva(T1 a, T2 q);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type gamma_q_inva(T1 a, T2 q, const Policy&);
- // digamma:
- template <class T>
- typename tools::promote_args<T>::type digamma(T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type digamma(T x, const Policy&);
- // trigamma:
- template <class T>
- typename tools::promote_args<T>::type trigamma(T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type trigamma(T x, const Policy&);
- // polygamma:
- template <class T>
- typename tools::promote_args<T>::type polygamma(int n, T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type polygamma(int n, T x, const Policy&);
- // Hypotenuse function sqrt(x ^ 2 + y ^ 2).
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type
- hypot(T1 x, T2 y);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type
- hypot(T1 x, T2 y, const Policy&);
- // cbrt - cube root.
- template <class RT>
- typename tools::promote_args<RT>::type cbrt(RT z);
- template <class RT, class Policy>
- typename tools::promote_args<RT>::type cbrt(RT z, const Policy&);
- // log1p is log(x + 1)
- template <class T>
- typename tools::promote_args<T>::type log1p(T);
- template <class T, class Policy>
- typename tools::promote_args<T>::type log1p(T, const Policy&);
- // log1pmx is log(x + 1) - x
- template <class T>
- typename tools::promote_args<T>::type log1pmx(T);
- template <class T, class Policy>
- typename tools::promote_args<T>::type log1pmx(T, const Policy&);
- // Exp (x) minus 1 functions.
- template <class T>
- typename tools::promote_args<T>::type expm1(T);
- template <class T, class Policy>
- typename tools::promote_args<T>::type expm1(T, const Policy&);
- // Power - 1
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type
- powm1(const T1 a, const T2 z);
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type
- powm1(const T1 a, const T2 z, const Policy&);
- // sqrt(1+x) - 1
- template <class T>
- typename tools::promote_args<T>::type sqrt1pm1(const T& val);
- template <class T, class Policy>
- typename tools::promote_args<T>::type sqrt1pm1(const T& val, const Policy&);
- // sinus cardinals:
- template <class T>
- typename tools::promote_args<T>::type sinc_pi(T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type sinc_pi(T x, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type sinhc_pi(T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type sinhc_pi(T x, const Policy&);
- // inverse hyperbolics:
- template<typename T>
- typename tools::promote_args<T>::type asinh(T x);
- template<typename T, class Policy>
- typename tools::promote_args<T>::type asinh(T x, const Policy&);
- template<typename T>
- typename tools::promote_args<T>::type acosh(T x);
- template<typename T, class Policy>
- typename tools::promote_args<T>::type acosh(T x, const Policy&);
- template<typename T>
- typename tools::promote_args<T>::type atanh(T x);
- template<typename T, class Policy>
- typename tools::promote_args<T>::type atanh(T x, const Policy&);
- namespace detail{
- typedef std::integral_constant<int, 0> bessel_no_int_tag; // No integer optimisation possible.
- typedef std::integral_constant<int, 1> bessel_maybe_int_tag; // Maybe integer optimisation.
- typedef std::integral_constant<int, 2> bessel_int_tag; // Definite integer optimisation.
- template <class T1, class T2, class Policy>
- struct bessel_traits
- {
- using result_type = typename std::conditional<
- std::is_integral<T1>::value,
- typename tools::promote_args<T2>::type,
- typename tools::promote_args<T1, T2>::type
- >::type;
- typedef typename policies::precision<result_type, Policy>::type precision_type;
- using optimisation_tag = typename std::conditional<
- (precision_type::value <= 0 || precision_type::value > 64),
- bessel_no_int_tag,
- typename std::conditional<
- std::is_integral<T1>::value,
- bessel_int_tag,
- bessel_maybe_int_tag
- >::type
- >::type;
- using optimisation_tag128 = typename std::conditional<
- (precision_type::value <= 0 || precision_type::value > 113),
- bessel_no_int_tag,
- typename std::conditional<
- std::is_integral<T1>::value,
- bessel_int_tag,
- bessel_maybe_int_tag
- >::type
- >::type;
- };
- } // detail
- // Bessel functions:
- template <class T1, class T2, class Policy>
- typename detail::bessel_traits<T1, T2, Policy>::result_type cyl_bessel_j(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2, class Policy>
- typename detail::bessel_traits<T1, T2, Policy>::result_type cyl_bessel_j_prime(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2>
- typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type cyl_bessel_j(T1 v, T2 x);
- template <class T1, class T2>
- typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type cyl_bessel_j_prime(T1 v, T2 x);
- template <class T, class Policy>
- typename detail::bessel_traits<T, T, Policy>::result_type sph_bessel(unsigned v, T x, const Policy& pol);
- template <class T, class Policy>
- typename detail::bessel_traits<T, T, Policy>::result_type sph_bessel_prime(unsigned v, T x, const Policy& pol);
- template <class T>
- typename detail::bessel_traits<T, T, policies::policy<> >::result_type sph_bessel(unsigned v, T x);
- template <class T>
- typename detail::bessel_traits<T, T, policies::policy<> >::result_type sph_bessel_prime(unsigned v, T x);
- template <class T1, class T2, class Policy>
- typename detail::bessel_traits<T1, T2, Policy>::result_type cyl_bessel_i(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2, class Policy>
- typename detail::bessel_traits<T1, T2, Policy>::result_type cyl_bessel_i_prime(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2>
- typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type cyl_bessel_i(T1 v, T2 x);
- template <class T1, class T2>
- typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type cyl_bessel_i_prime(T1 v, T2 x);
- template <class T1, class T2, class Policy>
- typename detail::bessel_traits<T1, T2, Policy>::result_type cyl_bessel_k(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2, class Policy>
- typename detail::bessel_traits<T1, T2, Policy>::result_type cyl_bessel_k_prime(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2>
- typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type cyl_bessel_k(T1 v, T2 x);
- template <class T1, class T2>
- typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type cyl_bessel_k_prime(T1 v, T2 x);
- template <class T1, class T2, class Policy>
- typename detail::bessel_traits<T1, T2, Policy>::result_type cyl_neumann(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2, class Policy>
- typename detail::bessel_traits<T1, T2, Policy>::result_type cyl_neumann_prime(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2>
- typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type cyl_neumann(T1 v, T2 x);
- template <class T1, class T2>
- typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type cyl_neumann_prime(T1 v, T2 x);
- template <class T, class Policy>
- typename detail::bessel_traits<T, T, Policy>::result_type sph_neumann(unsigned v, T x, const Policy& pol);
- template <class T, class Policy>
- typename detail::bessel_traits<T, T, Policy>::result_type sph_neumann_prime(unsigned v, T x, const Policy& pol);
- template <class T>
- typename detail::bessel_traits<T, T, policies::policy<> >::result_type sph_neumann(unsigned v, T x);
- template <class T>
- typename detail::bessel_traits<T, T, policies::policy<> >::result_type sph_neumann_prime(unsigned v, T x);
- template <class T, class Policy>
- typename detail::bessel_traits<T, T, Policy>::result_type cyl_bessel_j_zero(T v, int m, const Policy& pol);
- template <class T>
- typename detail::bessel_traits<T, T, policies::policy<> >::result_type cyl_bessel_j_zero(T v, int m);
- template <class T, class OutputIterator>
- OutputIterator cyl_bessel_j_zero(T v,
- int start_index,
- unsigned number_of_zeros,
- OutputIterator out_it);
- template <class T, class OutputIterator, class Policy>
- OutputIterator cyl_bessel_j_zero(T v,
- int start_index,
- unsigned number_of_zeros,
- OutputIterator out_it,
- const Policy&);
- template <class T, class Policy>
- typename detail::bessel_traits<T, T, Policy>::result_type cyl_neumann_zero(T v, int m, const Policy& pol);
- template <class T>
- typename detail::bessel_traits<T, T, policies::policy<> >::result_type cyl_neumann_zero(T v, int m);
- template <class T, class OutputIterator>
- OutputIterator cyl_neumann_zero(T v,
- int start_index,
- unsigned number_of_zeros,
- OutputIterator out_it);
- template <class T, class OutputIterator, class Policy>
- OutputIterator cyl_neumann_zero(T v,
- int start_index,
- unsigned number_of_zeros,
- OutputIterator out_it,
- const Policy&);
- template <class T1, class T2>
- std::complex<typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type> cyl_hankel_1(T1 v, T2 x);
- template <class T1, class T2, class Policy>
- std::complex<typename detail::bessel_traits<T1, T2, Policy>::result_type> cyl_hankel_1(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2, class Policy>
- std::complex<typename detail::bessel_traits<T1, T2, Policy>::result_type> cyl_hankel_2(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2>
- std::complex<typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type> cyl_hankel_2(T1 v, T2 x);
- template <class T1, class T2, class Policy>
- std::complex<typename detail::bessel_traits<T1, T2, Policy>::result_type> sph_hankel_1(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2>
- std::complex<typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type> sph_hankel_1(T1 v, T2 x);
- template <class T1, class T2, class Policy>
- std::complex<typename detail::bessel_traits<T1, T2, Policy>::result_type> sph_hankel_2(T1 v, T2 x, const Policy& pol);
- template <class T1, class T2>
- std::complex<typename detail::bessel_traits<T1, T2, policies::policy<> >::result_type> sph_hankel_2(T1 v, T2 x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type airy_ai(T x, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type airy_ai(T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type airy_bi(T x, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type airy_bi(T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type airy_ai_prime(T x, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type airy_ai_prime(T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type airy_bi_prime(T x, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type airy_bi_prime(T x);
- template <class T>
- T airy_ai_zero(int m);
- template <class T, class Policy>
- T airy_ai_zero(int m, const Policy&);
- template <class OutputIterator>
- OutputIterator airy_ai_zero(
- int start_index,
- unsigned number_of_zeros,
- OutputIterator out_it);
- template <class OutputIterator, class Policy>
- OutputIterator airy_ai_zero(
- int start_index,
- unsigned number_of_zeros,
- OutputIterator out_it,
- const Policy&);
- template <class T>
- T airy_bi_zero(int m);
- template <class T, class Policy>
- T airy_bi_zero(int m, const Policy&);
- template <class OutputIterator>
- OutputIterator airy_bi_zero(
- int start_index,
- unsigned number_of_zeros,
- OutputIterator out_it);
- template <class OutputIterator, class Policy>
- OutputIterator airy_bi_zero(
- int start_index,
- unsigned number_of_zeros,
- OutputIterator out_it,
- const Policy&);
- template <class T, class Policy>
- typename tools::promote_args<T>::type sin_pi(T x, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type sin_pi(T x);
- template <class T, class Policy>
- typename tools::promote_args<T>::type cos_pi(T x, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type cos_pi(T x);
- template <class T>
- int fpclassify BOOST_NO_MACRO_EXPAND(T t);
- template <class T>
- bool isfinite BOOST_NO_MACRO_EXPAND(T z);
- template <class T>
- bool isinf BOOST_NO_MACRO_EXPAND(T t);
- template <class T>
- bool isnan BOOST_NO_MACRO_EXPAND(T t);
- template <class T>
- bool isnormal BOOST_NO_MACRO_EXPAND(T t);
- template<class T>
- int signbit BOOST_NO_MACRO_EXPAND(T x);
- template <class T>
- int sign BOOST_NO_MACRO_EXPAND(const T& z);
- template <class T, class U>
- typename tools::promote_args_permissive<T, U>::type copysign BOOST_NO_MACRO_EXPAND(const T& x, const U& y);
- template <class T>
- typename tools::promote_args_permissive<T>::type changesign BOOST_NO_MACRO_EXPAND(const T& z);
- // Exponential integrals:
- namespace detail{
- template <class T, class U>
- struct expint_result
- {
- typedef typename std::conditional<
- policies::is_policy<U>::value,
- typename tools::promote_args<T>::type,
- typename tools::promote_args<U>::type
- >::type type;
- };
- } // namespace detail
- template <class T, class Policy>
- typename tools::promote_args<T>::type expint(unsigned n, T z, const Policy&);
- template <class T, class U>
- typename detail::expint_result<T, U>::type expint(T const z, U const u);
- template <class T>
- typename tools::promote_args<T>::type expint(T z);
- // Zeta:
- template <class T, class Policy>
- typename tools::promote_args<T>::type zeta(T s, const Policy&);
- // Owen's T function:
- template <class T1, class T2, class Policy>
- typename tools::promote_args<T1, T2>::type owens_t(T1 h, T2 a, const Policy& pol);
- template <class T1, class T2>
- typename tools::promote_args<T1, T2>::type owens_t(T1 h, T2 a);
- // Jacobi Functions:
- template <class T, class U, class V, class Policy>
- typename tools::promote_args<T, U, V>::type jacobi_elliptic(T k, U theta, V* pcn, V* pdn, const Policy&);
- template <class T, class U, class V>
- typename tools::promote_args<T, U, V>::type jacobi_elliptic(T k, U theta, V* pcn = 0, V* pdn = 0);
- template <class U, class T, class Policy>
- typename tools::promote_args<T, U>::type jacobi_sn(U k, T theta, const Policy& pol);
- template <class U, class T>
- typename tools::promote_args<T, U>::type jacobi_sn(U k, T theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_cn(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_cn(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_dn(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_dn(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_cd(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_cd(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_dc(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_dc(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_ns(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_ns(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_sd(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_sd(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_ds(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_ds(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_nc(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_nc(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_nd(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_nd(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_sc(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_sc(T k, U theta);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_cs(T k, U theta, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_cs(T k, U theta);
- // Jacobi Theta Functions:
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta1(T z, U q, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta1(T z, U q);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta2(T z, U q, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta2(T z, U q);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta3(T z, U q, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta3(T z, U q);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta4(T z, U q, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta4(T z, U q);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta1tau(T z, U tau, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta1tau(T z, U tau);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta2tau(T z, U tau, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta2tau(T z, U tau);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta3tau(T z, U tau, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta3tau(T z, U tau);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta4tau(T z, U tau, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta4tau(T z, U tau);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta3m1(T z, U q, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta3m1(T z, U q);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta4m1(T z, U q, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta4m1(T z, U q);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta3m1tau(T z, U tau, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta3m1tau(T z, U tau);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type jacobi_theta4m1tau(T z, U tau, const Policy& pol);
- template <class T, class U>
- typename tools::promote_args<T, U>::type jacobi_theta4m1tau(T z, U tau);
- template <class T>
- typename tools::promote_args<T>::type zeta(T s);
- // pow:
- template <int N, typename T, class Policy>
- BOOST_CXX14_CONSTEXPR typename tools::promote_args<T>::type pow(T base, const Policy& policy);
- template <int N, typename T>
- BOOST_CXX14_CONSTEXPR typename tools::promote_args<T>::type pow(T base);
- // next:
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type nextafter(const T&, const U&, const Policy&);
- template <class T, class U>
- typename tools::promote_args<T, U>::type nextafter(const T&, const U&);
- template <class T, class Policy>
- typename tools::promote_args<T>::type float_next(const T&, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type float_next(const T&);
- template <class T, class Policy>
- typename tools::promote_args<T>::type float_prior(const T&, const Policy&);
- template <class T>
- typename tools::promote_args<T>::type float_prior(const T&);
- template <class T, class U, class Policy>
- typename tools::promote_args<T, U>::type float_distance(const T&, const U&, const Policy&);
- template <class T, class U>
- typename tools::promote_args<T, U>::type float_distance(const T&, const U&);
- template <class T, class Policy>
- typename tools::promote_args<T>::type float_advance(T val, int distance, const Policy& pol);
- template <class T>
- typename tools::promote_args<T>::type float_advance(const T& val, int distance);
- template <class T, class Policy>
- typename tools::promote_args<T>::type ulp(const T& val, const Policy& pol);
- template <class T>
- typename tools::promote_args<T>::type ulp(const T& val);
- template <class T, class U>
- typename tools::promote_args<T, U>::type relative_difference(const T&, const U&);
- template <class T, class U>
- typename tools::promote_args<T, U>::type epsilon_difference(const T&, const U&);
- template<class T>
- BOOST_MATH_CONSTEXPR_TABLE_FUNCTION T unchecked_bernoulli_b2n(const std::size_t n);
- template <class T, class Policy>
- T bernoulli_b2n(const int i, const Policy &pol);
- template <class T>
- T bernoulli_b2n(const int i);
- template <class T, class OutputIterator, class Policy>
- OutputIterator bernoulli_b2n(const int start_index,
- const unsigned number_of_bernoullis_b2n,
- OutputIterator out_it,
- const Policy& pol);
- template <class T, class OutputIterator>
- OutputIterator bernoulli_b2n(const int start_index,
- const unsigned number_of_bernoullis_b2n,
- OutputIterator out_it);
- template <class T, class Policy>
- T tangent_t2n(const int i, const Policy &pol);
- template <class T>
- T tangent_t2n(const int i);
- template <class T, class OutputIterator, class Policy>
- OutputIterator tangent_t2n(const int start_index,
- const unsigned number_of_bernoullis_b2n,
- OutputIterator out_it,
- const Policy& pol);
- template <class T, class OutputIterator>
- OutputIterator tangent_t2n(const int start_index,
- const unsigned number_of_bernoullis_b2n,
- OutputIterator out_it);
- // Lambert W:
- template <class T, class Policy>
- typename boost::math::tools::promote_args<T>::type lambert_w0(T z, const Policy& pol);
- template <class T>
- typename boost::math::tools::promote_args<T>::type lambert_w0(T z);
- template <class T, class Policy>
- typename boost::math::tools::promote_args<T>::type lambert_wm1(T z, const Policy& pol);
- template <class T>
- typename boost::math::tools::promote_args<T>::type lambert_wm1(T z);
- template <class T, class Policy>
- typename boost::math::tools::promote_args<T>::type lambert_w0_prime(T z, const Policy& pol);
- template <class T>
- typename boost::math::tools::promote_args<T>::type lambert_w0_prime(T z);
- template <class T, class Policy>
- typename boost::math::tools::promote_args<T>::type lambert_wm1_prime(T z, const Policy& pol);
- template <class T>
- typename boost::math::tools::promote_args<T>::type lambert_wm1_prime(T z);
- // Hypergeometrics:
- template <class T1, class T2> typename tools::promote_args<T1, T2>::type hypergeometric_1F0(T1 a, T2 z);
- template <class T1, class T2, class Policy> typename tools::promote_args<T1, T2>::type hypergeometric_1F0(T1 a, T2 z, const Policy&);
- template <class T1, class T2> typename tools::promote_args<T1, T2>::type hypergeometric_0F1(T1 b, T2 z);
- template <class T1, class T2, class Policy> typename tools::promote_args<T1, T2>::type hypergeometric_0F1(T1 b, T2 z, const Policy&);
- template <class T1, class T2, class T3> typename tools::promote_args<T1, T2, T3>::type hypergeometric_2F0(T1 a1, T2 a2, T3 z);
- template <class T1, class T2, class T3, class Policy> typename tools::promote_args<T1, T2, T3>::type hypergeometric_2F0(T1 a1, T2 a2, T3 z, const Policy&);
- template <class T1, class T2, class T3> typename tools::promote_args<T1, T2, T3>::type hypergeometric_1F1(T1 a, T2 b, T3 z);
- template <class T1, class T2, class T3, class Policy> typename tools::promote_args<T1, T2, T3>::type hypergeometric_1F1(T1 a, T2 b, T3 z, const Policy&);
- } // namespace math
- } // namespace boost
- #ifdef BOOST_HAS_LONG_LONG
- #define BOOST_MATH_DETAIL_LL_FUNC(Policy)\
- \
- template <class T>\
- inline T modf(const T& v, boost::long_long_type* ipart){ using boost::math::modf; return modf(v, ipart, Policy()); }\
- \
- template <class T>\
- inline boost::long_long_type lltrunc(const T& v){ using boost::math::lltrunc; return lltrunc(v, Policy()); }\
- \
- template <class T>\
- inline boost::long_long_type llround(const T& v){ using boost::math::llround; return llround(v, Policy()); }\
- #else
- #define BOOST_MATH_DETAIL_LL_FUNC(Policy)
- #endif
- #if !defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) && !defined(BOOST_NO_CXX11_HDR_ARRAY)
- # define BOOST_MATH_DETAIL_11_FUNC(Policy)\
- template <class T, class U, class V>\
- inline typename boost::math::tools::promote_args<T, U>::type hypergeometric_1F1(const T& a, const U& b, const V& z)\
- { return boost::math::hypergeometric_1F1(a, b, z, Policy()); }\
- #else
- # define BOOST_MATH_DETAIL_11_FUNC(Policy)
- #endif
- #define BOOST_MATH_DECLARE_SPECIAL_FUNCTIONS(Policy)\
- \
- BOOST_MATH_DETAIL_LL_FUNC(Policy)\
- BOOST_MATH_DETAIL_11_FUNC(Policy)\
- \
- template <class RT1, class RT2>\
- inline typename boost::math::tools::promote_args<RT1, RT2>::type \
- beta(RT1 a, RT2 b) { return ::boost::math::beta(a, b, Policy()); }\
- \
- template <class RT1, class RT2, class A>\
- inline typename boost::math::tools::promote_args<RT1, RT2, A>::type \
- beta(RT1 a, RT2 b, A x){ return ::boost::math::beta(a, b, x, Policy()); }\
- \
- template <class RT1, class RT2, class RT3>\
- inline typename boost::math::tools::promote_args<RT1, RT2, RT3>::type \
- betac(RT1 a, RT2 b, RT3 x) { return ::boost::math::betac(a, b, x, Policy()); }\
- \
- template <class RT1, class RT2, class RT3>\
- inline typename boost::math::tools::promote_args<RT1, RT2, RT3>::type \
- ibeta(RT1 a, RT2 b, RT3 x){ return ::boost::math::ibeta(a, b, x, Policy()); }\
- \
- template <class RT1, class RT2, class RT3>\
- inline typename boost::math::tools::promote_args<RT1, RT2, RT3>::type \
- ibetac(RT1 a, RT2 b, RT3 x){ return ::boost::math::ibetac(a, b, x, Policy()); }\
- \
- template <class T1, class T2, class T3, class T4>\
- inline typename boost::math::tools::promote_args<T1, T2, T3, T4>::type \
- ibeta_inv(T1 a, T2 b, T3 p, T4* py){ return ::boost::math::ibeta_inv(a, b, p, py, Policy()); }\
- \
- template <class RT1, class RT2, class RT3>\
- inline typename boost::math::tools::promote_args<RT1, RT2, RT3>::type \
- ibeta_inv(RT1 a, RT2 b, RT3 p){ return ::boost::math::ibeta_inv(a, b, p, Policy()); }\
- \
- template <class T1, class T2, class T3, class T4>\
- inline typename boost::math::tools::promote_args<T1, T2, T3, T4>::type \
- ibetac_inv(T1 a, T2 b, T3 q, T4* py){ return ::boost::math::ibetac_inv(a, b, q, py, Policy()); }\
- \
- template <class RT1, class RT2, class RT3>\
- inline typename boost::math::tools::promote_args<RT1, RT2, RT3>::type \
- ibeta_inva(RT1 a, RT2 b, RT3 p){ return ::boost::math::ibeta_inva(a, b, p, Policy()); }\
- \
- template <class T1, class T2, class T3>\
- inline typename boost::math::tools::promote_args<T1, T2, T3>::type \
- ibetac_inva(T1 a, T2 b, T3 q){ return ::boost::math::ibetac_inva(a, b, q, Policy()); }\
- \
- template <class RT1, class RT2, class RT3>\
- inline typename boost::math::tools::promote_args<RT1, RT2, RT3>::type \
- ibeta_invb(RT1 a, RT2 b, RT3 p){ return ::boost::math::ibeta_invb(a, b, p, Policy()); }\
- \
- template <class T1, class T2, class T3>\
- inline typename boost::math::tools::promote_args<T1, T2, T3>::type \
- ibetac_invb(T1 a, T2 b, T3 q){ return ::boost::math::ibetac_invb(a, b, q, Policy()); }\
- \
- template <class RT1, class RT2, class RT3>\
- inline typename boost::math::tools::promote_args<RT1, RT2, RT3>::type \
- ibetac_inv(RT1 a, RT2 b, RT3 q){ return ::boost::math::ibetac_inv(a, b, q, Policy()); }\
- \
- template <class RT1, class RT2, class RT3>\
- inline typename boost::math::tools::promote_args<RT1, RT2, RT3>::type \
- ibeta_derivative(RT1 a, RT2 b, RT3 x){ return ::boost::math::ibeta_derivative(a, b, x, Policy()); }\
- \
- template <class T> T binomial_coefficient(unsigned n, unsigned k){ return ::boost::math::binomial_coefficient<T, Policy>(n, k, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type erf(RT z) { return ::boost::math::erf(z, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type erfc(RT z){ return ::boost::math::erfc(z, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type erf_inv(RT z) { return ::boost::math::erf_inv(z, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type erfc_inv(RT z){ return ::boost::math::erfc_inv(z, Policy()); }\
- \
- using boost::math::legendre_next;\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type \
- legendre_p(int l, T x){ return ::boost::math::legendre_p(l, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type \
- legendre_p_prime(int l, T x){ return ::boost::math::legendre_p(l, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type \
- legendre_q(unsigned l, T x){ return ::boost::math::legendre_q(l, x, Policy()); }\
- \
- using ::boost::math::legendre_next;\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type \
- legendre_p(int l, int m, T x){ return ::boost::math::legendre_p(l, m, x, Policy()); }\
- \
- using ::boost::math::laguerre_next;\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type \
- laguerre(unsigned n, T x){ return ::boost::math::laguerre(n, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::laguerre_result<T1, T2>::type \
- laguerre(unsigned n, T1 m, T2 x) { return ::boost::math::laguerre(n, m, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type \
- hermite(unsigned n, T x){ return ::boost::math::hermite(n, x, Policy()); }\
- \
- using boost::math::hermite_next;\
- \
- using boost::math::chebyshev_next;\
- \
- template<class Real>\
- Real chebyshev_t(unsigned n, Real const & x){ return ::boost::math::chebyshev_t(n, x, Policy()); }\
- \
- template<class Real>\
- Real chebyshev_u(unsigned n, Real const & x){ return ::boost::math::chebyshev_u(n, x, Policy()); }\
- \
- template<class Real>\
- Real chebyshev_t_prime(unsigned n, Real const & x){ return ::boost::math::chebyshev_t_prime(n, x, Policy()); }\
- \
- using ::boost::math::chebyshev_clenshaw_recurrence;\
- \
- template <class T1, class T2>\
- inline std::complex<typename boost::math::tools::promote_args<T1, T2>::type> \
- spherical_harmonic(unsigned n, int m, T1 theta, T2 phi){ return boost::math::spherical_harmonic(n, m, theta, phi, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type \
- spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi){ return ::boost::math::spherical_harmonic_r(n, m, theta, phi, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type \
- spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi){ return boost::math::spherical_harmonic_i(n, m, theta, phi, Policy()); }\
- \
- template <class T1, class T2, class Policy>\
- inline typename boost::math::tools::promote_args<T1, T2>::type \
- spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi, const Policy& pol);\
- \
- template <class T1, class T2, class T3>\
- inline typename boost::math::tools::promote_args<T1, T2, T3>::type \
- ellint_rf(T1 x, T2 y, T3 z){ return ::boost::math::ellint_rf(x, y, z, Policy()); }\
- \
- template <class T1, class T2, class T3>\
- inline typename boost::math::tools::promote_args<T1, T2, T3>::type \
- ellint_rd(T1 x, T2 y, T3 z){ return ::boost::math::ellint_rd(x, y, z, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type \
- ellint_rc(T1 x, T2 y){ return ::boost::math::ellint_rc(x, y, Policy()); }\
- \
- template <class T1, class T2, class T3, class T4>\
- inline typename boost::math::tools::promote_args<T1, T2, T3, T4>::type \
- ellint_rj(T1 x, T2 y, T3 z, T4 p){ return boost::math::ellint_rj(x, y, z, p, Policy()); }\
- \
- template <class T1, class T2, class T3>\
- inline typename boost::math::tools::promote_args<T1, T2, T3>::type \
- ellint_rg(T1 x, T2 y, T3 z){ return ::boost::math::ellint_rg(x, y, z, Policy()); }\
- \
- template <typename T>\
- inline typename boost::math::tools::promote_args<T>::type ellint_2(T k){ return boost::math::ellint_2(k, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type ellint_2(T1 k, T2 phi){ return boost::math::ellint_2(k, phi, Policy()); }\
- \
- template <typename T>\
- inline typename boost::math::tools::promote_args<T>::type ellint_d(T k){ return boost::math::ellint_d(k, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type ellint_d(T1 k, T2 phi){ return boost::math::ellint_d(k, phi, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type jacobi_zeta(T1 k, T2 phi){ return boost::math::jacobi_zeta(k, phi, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type heuman_lambda(T1 k, T2 phi){ return boost::math::heuman_lambda(k, phi, Policy()); }\
- \
- template <typename T>\
- inline typename boost::math::tools::promote_args<T>::type ellint_1(T k){ return boost::math::ellint_1(k, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type ellint_1(T1 k, T2 phi){ return boost::math::ellint_1(k, phi, Policy()); }\
- \
- template <class T1, class T2, class T3>\
- inline typename boost::math::tools::promote_args<T1, T2, T3>::type ellint_3(T1 k, T2 v, T3 phi){ return boost::math::ellint_3(k, v, phi, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type ellint_3(T1 k, T2 v){ return boost::math::ellint_3(k, v, Policy()); }\
- \
- using boost::math::max_factorial;\
- template <class RT>\
- inline RT factorial(unsigned int i) { return boost::math::factorial<RT>(i, Policy()); }\
- using boost::math::unchecked_factorial;\
- template <class RT>\
- inline RT double_factorial(unsigned i){ return boost::math::double_factorial<RT>(i, Policy()); }\
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type falling_factorial(RT x, unsigned n){ return boost::math::falling_factorial(x, n, Policy()); }\
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type rising_factorial(RT x, unsigned n){ return boost::math::rising_factorial(x, n, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type tgamma(RT z){ return boost::math::tgamma(z, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type tgamma1pm1(RT z){ return boost::math::tgamma1pm1(z, Policy()); }\
- \
- template <class RT1, class RT2>\
- inline typename boost::math::tools::promote_args<RT1, RT2>::type tgamma(RT1 a, RT2 z){ return boost::math::tgamma(a, z, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type lgamma(RT z, int* sign){ return boost::math::lgamma(z, sign, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type lgamma(RT x){ return boost::math::lgamma(x, Policy()); }\
- \
- template <class RT1, class RT2>\
- inline typename boost::math::tools::promote_args<RT1, RT2>::type tgamma_lower(RT1 a, RT2 z){ return boost::math::tgamma_lower(a, z, Policy()); }\
- \
- template <class RT1, class RT2>\
- inline typename boost::math::tools::promote_args<RT1, RT2>::type gamma_q(RT1 a, RT2 z){ return boost::math::gamma_q(a, z, Policy()); }\
- \
- template <class RT1, class RT2>\
- inline typename boost::math::tools::promote_args<RT1, RT2>::type gamma_p(RT1 a, RT2 z){ return boost::math::gamma_p(a, z, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type tgamma_delta_ratio(T1 z, T2 delta){ return boost::math::tgamma_delta_ratio(z, delta, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type tgamma_ratio(T1 a, T2 b) { return boost::math::tgamma_ratio(a, b, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type gamma_p_derivative(T1 a, T2 x){ return boost::math::gamma_p_derivative(a, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type gamma_p_inv(T1 a, T2 p){ return boost::math::gamma_p_inv(a, p, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type gamma_p_inva(T1 a, T2 p){ return boost::math::gamma_p_inva(a, p, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type gamma_q_inv(T1 a, T2 q){ return boost::math::gamma_q_inv(a, q, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type gamma_q_inva(T1 a, T2 q){ return boost::math::gamma_q_inva(a, q, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type digamma(T x){ return boost::math::digamma(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type trigamma(T x){ return boost::math::trigamma(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type polygamma(int n, T x){ return boost::math::polygamma(n, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type \
- hypot(T1 x, T2 y){ return boost::math::hypot(x, y, Policy()); }\
- \
- template <class RT>\
- inline typename boost::math::tools::promote_args<RT>::type cbrt(RT z){ return boost::math::cbrt(z, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type log1p(T x){ return boost::math::log1p(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type log1pmx(T x){ return boost::math::log1pmx(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type expm1(T x){ return boost::math::expm1(x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::tools::promote_args<T1, T2>::type \
- powm1(const T1 a, const T2 z){ return boost::math::powm1(a, z, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type sqrt1pm1(const T& val){ return boost::math::sqrt1pm1(val, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type sinc_pi(T x){ return boost::math::sinc_pi(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type sinhc_pi(T x){ return boost::math::sinhc_pi(x, Policy()); }\
- \
- template<typename T>\
- inline typename boost::math::tools::promote_args<T>::type asinh(const T x){ return boost::math::asinh(x, Policy()); }\
- \
- template<typename T>\
- inline typename boost::math::tools::promote_args<T>::type acosh(const T x){ return boost::math::acosh(x, Policy()); }\
- \
- template<typename T>\
- inline typename boost::math::tools::promote_args<T>::type atanh(const T x){ return boost::math::atanh(x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type cyl_bessel_j(T1 v, T2 x)\
- { return boost::math::cyl_bessel_j(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type cyl_bessel_j_prime(T1 v, T2 x)\
- { return boost::math::cyl_bessel_j_prime(v, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::detail::bessel_traits<T, T, Policy >::result_type sph_bessel(unsigned v, T x)\
- { return boost::math::sph_bessel(v, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::detail::bessel_traits<T, T, Policy >::result_type sph_bessel_prime(unsigned v, T x)\
- { return boost::math::sph_bessel_prime(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type \
- cyl_bessel_i(T1 v, T2 x) { return boost::math::cyl_bessel_i(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type \
- cyl_bessel_i_prime(T1 v, T2 x) { return boost::math::cyl_bessel_i_prime(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type \
- cyl_bessel_k(T1 v, T2 x) { return boost::math::cyl_bessel_k(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type \
- cyl_bessel_k_prime(T1 v, T2 x) { return boost::math::cyl_bessel_k_prime(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type \
- cyl_neumann(T1 v, T2 x){ return boost::math::cyl_neumann(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type \
- cyl_neumann_prime(T1 v, T2 x){ return boost::math::cyl_neumann_prime(v, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::detail::bessel_traits<T, T, Policy >::result_type \
- sph_neumann(unsigned v, T x){ return boost::math::sph_neumann(v, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::detail::bessel_traits<T, T, Policy >::result_type \
- sph_neumann_prime(unsigned v, T x){ return boost::math::sph_neumann_prime(v, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::detail::bessel_traits<T, T, Policy >::result_type cyl_bessel_j_zero(T v, int m)\
- { return boost::math::cyl_bessel_j_zero(v, m, Policy()); }\
- \
- template <class OutputIterator, class T>\
- inline void cyl_bessel_j_zero(T v,\
- int start_index,\
- unsigned number_of_zeros,\
- OutputIterator out_it)\
- { boost::math::cyl_bessel_j_zero(v, start_index, number_of_zeros, out_it, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::detail::bessel_traits<T, T, Policy >::result_type cyl_neumann_zero(T v, int m)\
- { return boost::math::cyl_neumann_zero(v, m, Policy()); }\
- \
- template <class OutputIterator, class T>\
- inline void cyl_neumann_zero(T v,\
- int start_index,\
- unsigned number_of_zeros,\
- OutputIterator out_it)\
- { boost::math::cyl_neumann_zero(v, start_index, number_of_zeros, out_it, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type sin_pi(T x){ return boost::math::sin_pi(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type cos_pi(T x){ return boost::math::cos_pi(x, Policy()); }\
- \
- using boost::math::fpclassify;\
- using boost::math::isfinite;\
- using boost::math::isinf;\
- using boost::math::isnan;\
- using boost::math::isnormal;\
- using boost::math::signbit;\
- using boost::math::sign;\
- using boost::math::copysign;\
- using boost::math::changesign;\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T,U>::type expint(T const& z, U const& u)\
- { return boost::math::expint(z, u, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type expint(T z){ return boost::math::expint(z, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type zeta(T s){ return boost::math::zeta(s, Policy()); }\
- \
- template <class T>\
- inline T round(const T& v){ using boost::math::round; return round(v, Policy()); }\
- \
- template <class T>\
- inline int iround(const T& v){ using boost::math::iround; return iround(v, Policy()); }\
- \
- template <class T>\
- inline long lround(const T& v){ using boost::math::lround; return lround(v, Policy()); }\
- \
- template <class T>\
- inline T trunc(const T& v){ using boost::math::trunc; return trunc(v, Policy()); }\
- \
- template <class T>\
- inline int itrunc(const T& v){ using boost::math::itrunc; return itrunc(v, Policy()); }\
- \
- template <class T>\
- inline long ltrunc(const T& v){ using boost::math::ltrunc; return ltrunc(v, Policy()); }\
- \
- template <class T>\
- inline T modf(const T& v, T* ipart){ using boost::math::modf; return modf(v, ipart, Policy()); }\
- \
- template <class T>\
- inline T modf(const T& v, int* ipart){ using boost::math::modf; return modf(v, ipart, Policy()); }\
- \
- template <class T>\
- inline T modf(const T& v, long* ipart){ using boost::math::modf; return modf(v, ipart, Policy()); }\
- \
- template <int N, class T>\
- inline typename boost::math::tools::promote_args<T>::type pow(T v){ return boost::math::pow<N>(v, Policy()); }\
- \
- template <class T> T nextafter(const T& a, const T& b){ return boost::math::nextafter(a, b, Policy()); }\
- template <class T> T float_next(const T& a){ return boost::math::float_next(a, Policy()); }\
- template <class T> T float_prior(const T& a){ return boost::math::float_prior(a, Policy()); }\
- template <class T> T float_distance(const T& a, const T& b){ return boost::math::float_distance(a, b, Policy()); }\
- template <class T> T ulp(const T& a){ return boost::math::ulp(a, Policy()); }\
- \
- template <class RT1, class RT2>\
- inline typename boost::math::tools::promote_args<RT1, RT2>::type owens_t(RT1 a, RT2 z){ return boost::math::owens_t(a, z, Policy()); }\
- \
- template <class T1, class T2>\
- inline std::complex<typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type> cyl_hankel_1(T1 v, T2 x)\
- { return boost::math::cyl_hankel_1(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline std::complex<typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type> cyl_hankel_2(T1 v, T2 x)\
- { return boost::math::cyl_hankel_2(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline std::complex<typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type> sph_hankel_1(T1 v, T2 x)\
- { return boost::math::sph_hankel_1(v, x, Policy()); }\
- \
- template <class T1, class T2>\
- inline std::complex<typename boost::math::detail::bessel_traits<T1, T2, Policy >::result_type> sph_hankel_2(T1 v, T2 x)\
- { return boost::math::sph_hankel_2(v, x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type jacobi_elliptic(T k, T theta, T* pcn, T* pdn)\
- { return boost::math::jacobi_elliptic(k, theta, pcn, pdn, Policy()); }\
- \
- template <class U, class T>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_sn(U k, T theta)\
- { return boost::math::jacobi_sn(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_cn(T k, U theta)\
- { return boost::math::jacobi_cn(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_dn(T k, U theta)\
- { return boost::math::jacobi_dn(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_cd(T k, U theta)\
- { return boost::math::jacobi_cd(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_dc(T k, U theta)\
- { return boost::math::jacobi_dc(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_ns(T k, U theta)\
- { return boost::math::jacobi_ns(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_sd(T k, U theta)\
- { return boost::math::jacobi_sd(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_ds(T k, U theta)\
- { return boost::math::jacobi_ds(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_nc(T k, U theta)\
- { return boost::math::jacobi_nc(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_nd(T k, U theta)\
- { return boost::math::jacobi_nd(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_sc(T k, U theta)\
- { return boost::math::jacobi_sc(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_cs(T k, U theta)\
- { return boost::math::jacobi_cs(k, theta, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta1(T z, U q)\
- { return boost::math::jacobi_theta1(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta2(T z, U q)\
- { return boost::math::jacobi_theta2(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta3(T z, U q)\
- { return boost::math::jacobi_theta3(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta4(T z, U q)\
- { return boost::math::jacobi_theta4(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta1tau(T z, U q)\
- { return boost::math::jacobi_theta1tau(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta2tau(T z, U q)\
- { return boost::math::jacobi_theta2tau(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta3tau(T z, U q)\
- { return boost::math::jacobi_theta3tau(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta4tau(T z, U q)\
- { return boost::math::jacobi_theta4tau(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta3m1(T z, U q)\
- { return boost::math::jacobi_theta3m1(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta4m1(T z, U q)\
- { return boost::math::jacobi_theta4m1(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta3m1tau(T z, U q)\
- { return boost::math::jacobi_theta3m1tau(z, q, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type jacobi_theta4m1tau(T z, U q)\
- { return boost::math::jacobi_theta4m1tau(z, q, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type airy_ai(T x)\
- { return boost::math::airy_ai(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type airy_bi(T x)\
- { return boost::math::airy_bi(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type airy_ai_prime(T x)\
- { return boost::math::airy_ai_prime(x, Policy()); }\
- \
- template <class T>\
- inline typename boost::math::tools::promote_args<T>::type airy_bi_prime(T x)\
- { return boost::math::airy_bi_prime(x, Policy()); }\
- \
- template <class T>\
- inline T airy_ai_zero(int m)\
- { return boost::math::airy_ai_zero<T>(m, Policy()); }\
- template <class T, class OutputIterator>\
- OutputIterator airy_ai_zero(int start_index, unsigned number_of_zeros, OutputIterator out_it)\
- { return boost::math::airy_ai_zero<T>(start_index, number_of_zeros, out_it, Policy()); }\
- \
- template <class T>\
- inline T airy_bi_zero(int m)\
- { return boost::math::airy_bi_zero<T>(m, Policy()); }\
- template <class T, class OutputIterator>\
- OutputIterator airy_bi_zero(int start_index, unsigned number_of_zeros, OutputIterator out_it)\
- { return boost::math::airy_bi_zero<T>(start_index, number_of_zeros, out_it, Policy()); }\
- \
- template <class T>\
- T bernoulli_b2n(const int i)\
- { return boost::math::bernoulli_b2n<T>(i, Policy()); }\
- template <class T, class OutputIterator>\
- OutputIterator bernoulli_b2n(int start_index, unsigned number_of_bernoullis_b2n, OutputIterator out_it)\
- { return boost::math::bernoulli_b2n<T>(start_index, number_of_bernoullis_b2n, out_it, Policy()); }\
- \
- template <class T>\
- T tangent_t2n(const int i)\
- { return boost::math::tangent_t2n<T>(i, Policy()); }\
- template <class T, class OutputIterator>\
- OutputIterator tangent_t2n(int start_index, unsigned number_of_bernoullis_b2n, OutputIterator out_it)\
- { return boost::math::tangent_t2n<T>(start_index, number_of_bernoullis_b2n, out_it, Policy()); }\
- \
- template <class T> inline typename boost::math::tools::promote_args<T>::type lambert_w0(T z) { return boost::math::lambert_w0(z, Policy()); }\
- template <class T> inline typename boost::math::tools::promote_args<T>::type lambert_wm1(T z) { return boost::math::lambert_w0(z, Policy()); }\
- template <class T> inline typename boost::math::tools::promote_args<T>::type lambert_w0_prime(T z) { return boost::math::lambert_w0(z, Policy()); }\
- template <class T> inline typename boost::math::tools::promote_args<T>::type lambert_wm1_prime(T z) { return boost::math::lambert_w0(z, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type hypergeometric_1F0(const T& a, const U& z)\
- { return boost::math::hypergeometric_1F0(a, z, Policy()); }\
- \
- template <class T, class U>\
- inline typename boost::math::tools::promote_args<T, U>::type hypergeometric_0F1(const T& a, const U& z)\
- { return boost::math::hypergeometric_0F1(a, z, Policy()); }\
- \
- template <class T, class U, class V>\
- inline typename boost::math::tools::promote_args<T, U>::type hypergeometric_2F0(const T& a1, const U& a2, const V& z)\
- { return boost::math::hypergeometric_2F0(a1, a2, z, Policy()); }\
- \
- #endif // BOOST_MATH_SPECIAL_MATH_FWD_HPP
|