Commits

Ruben Martinez-Cantin committed 55f9160

Fixing M_PI issue in testmcmc.cpp

  • Participants
  • Parent commits 7ee1725

Comments (0)

Files changed (3)

File examples/CMakeLists.txt

 TARGET_LINK_LIBRARIES(bo_oned bayesopt)
 
 #Branin
-ADD_EXECUTABLE(bo_branin ./bo_branin.cpp )
-add_dependencies(bo_branin bayesopt)
-TARGET_LINK_LIBRARIES(bo_branin bayesopt)
+#ADD_EXECUTABLE(bo_branin ./bo_branin.cpp )
+#add_dependencies(bo_branin bayesopt)
+#TARGET_LINK_LIBRARIES(bo_branin bayesopt)
 
 ADD_EXECUTABLE(bo_branin_mcmc ./bo_branin_mcmc.cpp )
 add_dependencies(bo_branin_mcmc bayesopt)

File examples/bo_display.cpp

 ------------------------------------------------------------------------
 */
 
+#include "testfunctions.hpp"
 #include "displaygp.hpp"
-#include "testfunctions.hpp"
+
 
 
 // Unfortunately OpenGL functions require no parameters, so the object has to be global.

File tests/testmcmc.cpp

+/*
+-------------------------------------------------------------------------
+   This file is part of BayesOpt, an efficient C++ library for 
+   Bayesian optimization.
+
+   Copyright (C) 2011-2013 Ruben Martinez-Cantin <rmcantin@unizar.es>
+ 
+   BayesOpt is free software: you can redistribute it and/or modify it 
+   under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   BayesOpt is distributed in the hope that it will be useful, but 
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with BayesOpt.  If not, see <http://www.gnu.org/licenses/>.
+------------------------------------------------------------------------
+*/
+
+#define _USE_MATH_DEFINES
 #include <cmath>
 #include <boost/numeric/ublas/assignment.hpp>
 #include <boost/numeric/ublas/lu.hpp>