3 boost/numeric/odeint/external/vexcl/vexcl_algebra_dispatcher.hpp
6 algebra_dispatcher specialization for vexcl
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)
18 #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_ALGEBRA_DISPATCHER_HPP_DEFINED
19 #define BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_ALGEBRA_DISPATCHER_HPP_DEFINED
21 #include <vexcl/vector.hpp>
22 #include <vexcl/multivector.hpp>
24 #include <boost/numeric/odeint/algebra/vector_space_algebra.hpp>
25 #include <boost/numeric/odeint/algebra/algebra_dispatcher.hpp>
32 // specialization for vexcl vector
33 template< typename T >
34 struct algebra_dispatcher< vex::vector< T > >
36 typedef vector_space_algebra algebra_type;
39 // specialization for vexcl multivector
40 template< typename T , size_t N >
41 struct algebra_dispatcher< vex::multivector< T , N > >
43 typedef vector_space_algebra algebra_type;
47 } // namespace numeric
51 #endif // BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_ALGEBRA_DISPATCHER_HPP_DEFINED