]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /* |
2 | [auto_generated] | |
3 | boost/numeric/odeint/external/eigen/eigen_algebra_dispatcher.hpp | |
4 | ||
5 | [begin_description] | |
6 | tba. | |
7 | [end_description] | |
8 | ||
9 | Copyright 2009-2012 Karsten Ahnert | |
10 | Copyright 2009-2012 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 | ||
18 | #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_EIGEN_EIGEN_ALGEBRA_DISPATCHER_HPP_INCLUDED | |
19 | #define BOOST_NUMERIC_ODEINT_EXTERNAL_EIGEN_EIGEN_ALGEBRA_DISPATCHER_HPP_INCLUDED | |
20 | ||
21 | ||
22 | namespace boost { | |
23 | namespace numeric { | |
24 | namespace odeint { | |
25 | ||
26 | ||
27 | template< class Derived > | |
28 | struct algebra_dispatcher_sfinae< Derived , | |
29 | typename boost::enable_if< typename boost::is_base_of< Eigen::MatrixBase< Derived > , Derived >::type >::type > | |
30 | { | |
31 | typedef vector_space_algebra algebra_type; | |
32 | }; | |
33 | ||
34 | ||
35 | template < class Derived > | |
36 | struct algebra_dispatcher_sfinae< Derived , | |
37 | typename boost::enable_if< typename boost::is_base_of< Eigen::ArrayBase< Derived > , Derived >::type >::type > | |
38 | { | |
39 | typedef vector_space_algebra algebra_type; | |
40 | }; | |
41 | ||
42 | ||
43 | ||
44 | } // namespace odeint | |
45 | } // namespace numeric | |
46 | } // namespace boost | |
47 | ||
48 | ||
49 | #endif // BOOST_NUMERIC_ODEINT_EXTERNAL_EIGEN_EIGEN_ALGEBRA_DISPATCHER_HPP_INCLUDED |