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