]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /* |
2 | [auto_generated] | |
3 | boost/numeric/odeint/external/vexcl/vexcl_copy.hpp | |
4 | ||
5 | [begin_description] | |
6 | copy_impl specializations for vexcl | |
7 | [end_description] | |
8 | ||
9 | Copyright 2009-2011 Karsten Ahnert | |
10 | Copyright 2009-2011 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_VEXCL_VEXCL_COPY_HPP_INCLUDED | |
19 | #define BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_COPY_HPP_INCLUDED | |
20 | ||
21 | #include <vexcl/vector.hpp> | |
22 | #include <vexcl/multivector.hpp> | |
23 | ||
24 | #include <boost/numeric/odeint/util/copy.hpp> | |
25 | ||
26 | namespace boost { | |
27 | namespace numeric { | |
28 | namespace odeint { | |
29 | ||
30 | template< typename T1, typename T2 > | |
31 | struct copy_impl< vex::vector<T1>, vex::vector<T2> > | |
32 | { | |
33 | static void copy( const vex::vector<T1> &from , vex::vector<T2> &to ) | |
34 | { | |
35 | to = from; | |
36 | } | |
37 | }; | |
38 | ||
39 | template< typename T1, typename T2, size_t N > | |
40 | struct copy_impl< vex::multivector<T1, N>, vex::multivector<T2, N> > | |
41 | { | |
42 | static void copy( const vex::multivector<T1, N> &from , vex::multivector<T2, N> &to ) | |
43 | { | |
44 | to = from; | |
45 | } | |
46 | }; | |
47 | ||
48 | ||
49 | } // namespace odeint | |
50 | } // namespace numeric | |
51 | } // namespace boost | |
52 | ||
53 | ||
54 | ||
55 | #endif // BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_COPY_HPP_INCLUDED |