]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/numeric/odeint/test_external/eigen/is_resizeable.cpp
3 libs/numeric/odeint/test_external/eigen/is_resizeable.cpp
9 Copyright 2013 Karsten Ahnert
10 Copyright 2013 Mario Mulansky
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)
17 #include <boost/config.hpp>
19 #pragma warning(disable:4996)
22 #define BOOST_TEST_MODULE odeint_eigen_is_resizeable
24 #include <boost/test/unit_test.hpp>
26 #include <boost/numeric/odeint/external/eigen/eigen_resize.hpp>
28 using namespace boost::unit_test
;
29 using namespace boost::numeric::odeint
;
32 BOOST_AUTO_TEST_SUITE( is_resizeable
)
34 BOOST_AUTO_TEST_CASE( test_compile_time_matrix
)
36 typedef Eigen::Matrix
< double , 1 , 1 > matrix_type
;
37 BOOST_STATIC_ASSERT(( boost::numeric::odeint::is_resizeable
< matrix_type
>::value
));
40 BOOST_AUTO_TEST_CASE( test_compile_time_array
)
42 typedef Eigen::Array
< double , 1 , 1 > array_type
;
43 BOOST_STATIC_ASSERT(( boost::numeric::odeint::is_resizeable
< array_type
>::value
));
47 BOOST_AUTO_TEST_SUITE_END()