]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/compile_test/sf_jacobi_incl_test.cpp
1 // Copyright John Maddock 2012.
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/bessel.hpp>
7 // #includes all the files that it needs to.
9 #include <boost/math/special_functions/jacobi_elliptic.hpp>
11 // Note this header includes no other headers, this is
12 // important if this test is to be meaningful:
14 #include "test_compile_result.hpp"
16 void compile_and_link_test()
18 check_result
<float>(boost::math::jacobi_elliptic
<float>(f
, f
, static_cast<float*>(0), static_cast<float*>(0)));
19 check_result
<double>(boost::math::jacobi_elliptic
<double>(d
, d
, static_cast<double*>(0), static_cast<double*>(0)));
20 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
21 check_result
<long double>(boost::math::jacobi_elliptic
<long double>(l
, l
, static_cast<long double*>(0), static_cast<long double*>(0)));
24 check_result
<float>(boost::math::jacobi_sn
<float>(f
, f
));
25 check_result
<double>(boost::math::jacobi_sn
<double>(d
, d
));
26 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
27 check_result
<long double>(boost::math::jacobi_sn
<long double>(l
, l
));
30 check_result
<float>(boost::math::jacobi_cn
<float>(f
, f
));
31 check_result
<double>(boost::math::jacobi_cn
<double>(d
, d
));
32 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
33 check_result
<long double>(boost::math::jacobi_cn
<long double>(l
, l
));
36 check_result
<float>(boost::math::jacobi_dn
<float>(f
, f
));
37 check_result
<double>(boost::math::jacobi_dn
<double>(d
, d
));
38 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
39 check_result
<long double>(boost::math::jacobi_dn
<long double>(l
, l
));
42 check_result
<float>(boost::math::jacobi_cd
<float>(f
, f
));
43 check_result
<double>(boost::math::jacobi_cd
<double>(d
, d
));
44 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
45 check_result
<long double>(boost::math::jacobi_cd
<long double>(l
, l
));
48 check_result
<float>(boost::math::jacobi_dc
<float>(f
, f
));
49 check_result
<double>(boost::math::jacobi_dc
<double>(d
, d
));
50 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
51 check_result
<long double>(boost::math::jacobi_dc
<long double>(l
, l
));
54 check_result
<float>(boost::math::jacobi_ns
<float>(f
, f
));
55 check_result
<double>(boost::math::jacobi_ns
<double>(d
, d
));
56 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
57 check_result
<long double>(boost::math::jacobi_ns
<long double>(l
, l
));
60 check_result
<float>(boost::math::jacobi_sd
<float>(f
, f
));
61 check_result
<double>(boost::math::jacobi_sd
<double>(d
, d
));
62 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
63 check_result
<long double>(boost::math::jacobi_sd
<long double>(l
, l
));
66 check_result
<float>(boost::math::jacobi_ds
<float>(f
, f
));
67 check_result
<double>(boost::math::jacobi_ds
<double>(d
, d
));
68 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
69 check_result
<long double>(boost::math::jacobi_ds
<long double>(l
, l
));
72 check_result
<float>(boost::math::jacobi_nc
<float>(f
, f
));
73 check_result
<double>(boost::math::jacobi_nc
<double>(d
, d
));
74 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
75 check_result
<long double>(boost::math::jacobi_nc
<long double>(l
, l
));
78 check_result
<float>(boost::math::jacobi_nd
<float>(f
, f
));
79 check_result
<double>(boost::math::jacobi_nd
<double>(d
, d
));
80 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
81 check_result
<long double>(boost::math::jacobi_nd
<long double>(l
, l
));
84 check_result
<float>(boost::math::jacobi_sc
<float>(f
, f
));
85 check_result
<double>(boost::math::jacobi_sc
<double>(d
, d
));
86 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
87 check_result
<long double>(boost::math::jacobi_sc
<long double>(l
, l
));
90 check_result
<float>(boost::math::jacobi_cs
<float>(f
, f
));
91 check_result
<double>(boost::math::jacobi_cs
<double>(d
, d
));
92 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
93 check_result
<long double>(boost::math::jacobi_cs
<long double>(l
, l
));