]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/math/test/compile_test/naive_monte_carlo_concept_test.cpp
buildsys: change download over to reef release
[ceph.git] / ceph / src / boost / libs / math / test / compile_test / naive_monte_carlo_concept_test.cpp
CommitLineData
11fdf7f2
TL
1/*
2 * Copyright Nick Thompson, 2017
3 * Use, modification and distribution are subject to the
4 * Boost Software License, Version 1.0. (See accompanying file
5 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 */
7
8#if !defined(_MSC_VER) || (_MSC_VER >= 1900)
9
10#include <boost/math/concepts/std_real_concept.hpp>
11#include <boost/math/quadrature/naive_monte_carlo.hpp>
12
13using boost::math::concepts::std_real_concept;
14using boost::math::quadrature::naive_monte_carlo;
15
16void compile_and_link_test()
17{
18 auto g = [&](std::vector<std_real_concept> const & x)
19 {
20 return 1.873;
21 };
22 std::vector<std::pair<std_real_concept, std_real_concept>> bounds{{0, 1}, {0, 1}, {0, 1}};
23 naive_monte_carlo<std_real_concept, decltype(g)> mc(g, bounds, 1.0);
24
25 auto task = mc.integrate();
26 task.get();
27}
28
29#else
30void compile_and_link_test()
31{
32}
33#endif