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 | 4845fbb1288c92ce73f84d3c7878b7c81dc09654 (patch) | |
tree | 5202ee5e0699c3178a7c0288d79419c44a964e9f /utils | |
parent | dbe064a15aa78b344d13db5bd831cc9e0a9bbac1 (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; |