[mlpack-svn] r11841 - mlpack/trunk/src/mlpack
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Mar 12 17:50:20 EDT 2012
Author: rcurtin
Date: 2012-03-12 17:50:20 -0400 (Mon, 12 Mar 2012)
New Revision: 11841
Modified:
mlpack/trunk/src/mlpack/core.hpp
Log:
Use boost tgamma and include that round function we made earlier.
Modified: mlpack/trunk/src/mlpack/core.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core.hpp 2012-03-12 21:40:25 UTC (rev 11840)
+++ mlpack/trunk/src/mlpack/core.hpp 2012-03-12 21:50:20 UTC (rev 11841)
@@ -133,6 +133,9 @@
#define _USE_MATH_DEFINES
#include <math.h>
+// For tgamma().
+#include <boost/math/special_functions/gamma.hpp>
+
// But if it's not defined, we'll do it.
#ifndef M_PI
#define M_PI 3.141592653589793238462643383279
@@ -147,6 +150,7 @@
#include <mlpack/core/math/clamp.hpp>
#include <mlpack/core/math/random.hpp>
#include <mlpack/core/math/range.hpp>
+#include <mlpack/core/math/round.hpp>
#include <mlpack/core/util/save_restore_utility.hpp>
#include <mlpack/core/dists/discrete_distribution.hpp>
#include <mlpack/core/dists/gaussian_distribution.hpp>
More information about the mlpack-svn
mailing list