]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/numeric/odeint/test_external/eigen/is_resizeable.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / numeric / odeint / test_external / eigen / is_resizeable.cpp
1 /*
2 [auto_generated]
3 libs/numeric/odeint/test_external/eigen/is_resizeable.cpp
4
5 [begin_description]
6 tba.
7 [end_description]
8
9 Copyright 2013 Karsten Ahnert
10 Copyright 2013 Mario Mulansky
11
12 Distributed under the Boost Software License, Version 1.0.
13 (See accompanying file LICENSE_1_0.txt or
14 copy at http://www.boost.org/LICENSE_1_0.txt)
15 */
16
17 #include <boost/config.hpp>
18 #ifdef BOOST_MSVC
19 #pragma warning(disable:4996)
20 #endif
21
22 #define BOOST_TEST_MODULE odeint_eigen_is_resizeable
23
24 #include <boost/test/unit_test.hpp>
25
26 #include <boost/numeric/odeint/external/eigen/eigen_resize.hpp>
27
28 using namespace boost::unit_test;
29 using namespace boost::numeric::odeint;
30
31
32 BOOST_AUTO_TEST_SUITE( is_resizeable )
33
34 BOOST_AUTO_TEST_CASE( test_compile_time_matrix )
35 {
36 typedef Eigen::Matrix< double , 1 , 1 > matrix_type;
37 BOOST_STATIC_ASSERT(( boost::numeric::odeint::is_resizeable< matrix_type >::value ));
38 }
39
40 BOOST_AUTO_TEST_CASE( test_compile_time_array )
41 {
42 typedef Eigen::Array< double , 1 , 1 > array_type;
43 BOOST_STATIC_ASSERT(( boost::numeric::odeint::is_resizeable< array_type >::value ));
44 }
45
46
47 BOOST_AUTO_TEST_SUITE_END()