File indexing completed on 2025-01-18 09:42:52
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_COPY_HPP_INCLUDED
0019 #define BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_COPY_HPP_INCLUDED
0020
0021 #include <vexcl/vector.hpp>
0022 #include <vexcl/multivector.hpp>
0023
0024 #include <boost/numeric/odeint/util/copy.hpp>
0025
0026 namespace boost {
0027 namespace numeric {
0028 namespace odeint {
0029
0030 template< typename T1, typename T2 >
0031 struct copy_impl< vex::vector<T1>, vex::vector<T2> >
0032 {
0033 static void copy( const vex::vector<T1> &from , vex::vector<T2> &to )
0034 {
0035 to = from;
0036 }
0037 };
0038
0039 template< typename T1, typename T2, size_t N >
0040 struct copy_impl< vex::multivector<T1, N>, vex::multivector<T2, N> >
0041 {
0042 static void copy( const vex::multivector<T1, N> &from , vex::multivector<T2, N> &to )
0043 {
0044 to = from;
0045 }
0046 };
0047
0048
0049 }
0050 }
0051 }
0052
0053
0054
0055 #endif