]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/compile_test/barycentric_rational_incl_test.cpp
1 // Copyright John Maddock 2017.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // Basic sanity check that header <boost/math/special_functions/gamma.hpp>
7 // #includes all the files that it needs to.
11 #pragma warning(disable:4459)
14 #include <boost/math/interpolators/barycentric_rational.hpp>
16 // Note this header includes no other headers, this is
17 // important if this test is to be meaningful:
19 #include "test_compile_result.hpp"
21 void compile_and_link_test()
23 double data
[] = { 1, 2, 3 };
24 double y
[] = { 34, 56, 67 };
25 boost::math::barycentric_rational
<double> s(data
, y
, 3, 2);
26 check_result
<double>(s(1.0));