Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New interface for sampling #300

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
2 changes: 2 additions & 0 deletions examples/crhmc_sampling/simple_crhmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#include "random.hpp"
#include <vector>
#include "random_walks/random_walks.hpp"
#include "preprocess/analytic_center_linear_ineq.h"
#include "generators/known_polytope_generators.h"
#include "generators/h_polytopes_generator.h"
#include "helper_functions.hpp"

template <int simdLen>
Expand Down
32 changes: 32 additions & 0 deletions examples/sample_points/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
project( VolEsti-cpp-example )

CMAKE_MINIMUM_REQUIRED(VERSION 3.11)

add_definitions(-DDISABLE_NLP_ORACLES)

include("../../external/cmake-files/Eigen.cmake")
GetEigen()
if (${CMAKE_VERSION} VERSION_LESS "3.12.0")
add_compile_options(-D "EIGEN_NO_DEBUG")
else ()
add_compile_definitions("EIGEN_NO_DEBUG")
endif ()

include("../../external/cmake-files/Boost.cmake")
GetBoost()

include("../../external/cmake-files/LPSolve.cmake")
GetLPSolve()

include("../../external/cmake-files/QD.cmake")
GetQD()

set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")

add_definitions(${CMAKE_CXX_FLAGS} "-g")

include_directories (BEFORE ../../external)
include_directories (BEFORE ../../include)

add_executable (example simple_example.cpp)
target_link_libraries(example PUBLIC lp_solve QD_LIB)
Loading
Loading