Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/math/special_functions/legendre.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
69 } | 69 } |
70 | 70 |
71 } // namespace detail | 71 } // namespace detail |
72 | 72 |
73 template <class T, class Policy> | 73 template <class T, class Policy> |
74 inline typename tools::promote_args<T>::type | 74 inline typename boost::enable_if_c<policies::is_policy<Policy>::value, typename tools::promote_args<T>::type>::type |
75 legendre_p(int l, T x, const Policy& pol) | 75 legendre_p(int l, T x, const Policy& pol) |
76 { | 76 { |
77 typedef typename tools::promote_args<T>::type result_type; | 77 typedef typename tools::promote_args<T>::type result_type; |
78 typedef typename policies::evaluation<result_type, Policy>::type value_type; | 78 typedef typename policies::evaluation<result_type, Policy>::type value_type; |
79 static const char* function = "boost::math::legendre_p<%1%>(unsigned, %1%)"; | 79 static const char* function = "boost::math::legendre_p<%1%>(unsigned, %1%)"; |
88 { | 88 { |
89 return boost::math::legendre_p(l, x, policies::policy<>()); | 89 return boost::math::legendre_p(l, x, policies::policy<>()); |
90 } | 90 } |
91 | 91 |
92 template <class T, class Policy> | 92 template <class T, class Policy> |
93 inline typename tools::promote_args<T>::type | 93 inline typename boost::enable_if_c<policies::is_policy<Policy>::value, typename tools::promote_args<T>::type>::type |
94 legendre_q(unsigned l, T x, const Policy& pol) | 94 legendre_q(unsigned l, T x, const Policy& pol) |
95 { | 95 { |
96 typedef typename tools::promote_args<T>::type result_type; | 96 typedef typename tools::promote_args<T>::type result_type; |
97 typedef typename policies::evaluation<result_type, Policy>::type value_type; | 97 typedef typename policies::evaluation<result_type, Policy>::type value_type; |
98 return policies::checked_narrowing_cast<result_type, Policy>(detail::legendre_imp(l, static_cast<value_type>(x), pol, true), "boost::math::legendre_q<%1%>(unsigned, %1%)"); | 98 return policies::checked_narrowing_cast<result_type, Policy>(detail::legendre_imp(l, static_cast<value_type>(x), pol, true), "boost::math::legendre_q<%1%>(unsigned, %1%)"); |