]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/compile_test/naive_monte_carlo_concept_test.cpp
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)
8 #if !defined(_MSC_VER) || (_MSC_VER >= 1900)
10 #include <boost/math/concepts/std_real_concept.hpp>
11 #include <boost/math/quadrature/naive_monte_carlo.hpp>
13 using boost::math::concepts::std_real_concept
;
14 using boost::math::quadrature::naive_monte_carlo
;
16 void compile_and_link_test()
18 auto g
= [&](std::vector
<std_real_concept
> const & x
)
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);
25 auto task
= mc
.integrate();
30 void compile_and_link_test()