[mlpack-git] master: Attempts to fix missing boost::math::policies::digits error (495f3c6)
gitdub at mlpack.org
gitdub at mlpack.org
Thu Jul 21 08:36:54 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/ba850f782a53c5a77b7985f7647f609bd96cb5e7...2c026d838925df436d967439899813da5d34c702
>---------------------------------------------------------------
commit 495f3c659edaeba99b6f0e33731b0d7d5c25d998
Author: Yannis Mentekidis <mentekid at gmail.com>
Date: Thu Jul 21 13:36:54 2016 +0100
Attempts to fix missing boost::math::policies::digits error
>---------------------------------------------------------------
495f3c659edaeba99b6f0e33731b0d7d5c25d998
src/mlpack/core/boost_backport/detail/polygamma.hpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/mlpack/core/boost_backport/detail/polygamma.hpp b/src/mlpack/core/boost_backport/detail/polygamma.hpp
index e735d09..35b45ff 100644
--- a/src/mlpack/core/boost_backport/detail/polygamma.hpp
+++ b/src/mlpack/core/boost_backport/detail/polygamma.hpp
@@ -36,6 +36,15 @@
template<class T>
inline typename tools::promote_args<T>::type polygamma(const int n, T x);
+ namespace policies {
+
+ template <class T, class Policy>
+ inline int digits_base10(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE(T))
+ {
+ return boost::math::policies::digits<T, Policy>() * 301 / 1000L;
+ }
+ }
+
}}
namespace boost { namespace math { namespace detail{
More information about the mlpack-git
mailing list