diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-02-17 13:01:54 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-02-17 13:01:54 -0500 |
commit | a38b3fa383412e56eb958db998662c026bc08f4b (patch) | |
tree | a6054f6f47e885c6ea07fc7c73441a188ec5b400 /utils | |
parent | e8583574e25c8ef09c9cd21cbc7421d9d12cf75f (diff) |
boost version checking, check for Eigen, get rid of old digamma stuff
Diffstat (limited to 'utils')
-rw-r--r-- | utils/m.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include <cassert> #include <cmath> +#include <boost/math/special_functions/digamma.hpp> template <typename F> struct M { @@ -81,6 +82,11 @@ struct M { } } + // digamma is the first derivative of the log-gamma function + static inline F digamma(const F& x) { + return boost::math::digamma(x); + } + }; typedef M<double> Md; |