Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:52

0001 /*
0002  [auto_generated]
0003  boost/numeric/odeint/external/vexcl/vexcl_copy.hpp
0004 
0005  [begin_description]
0006  copy_impl specializations for vexcl
0007  [end_description]
0008 
0009  Copyright 2009-2011 Karsten Ahnert
0010  Copyright 2009-2011 Mario Mulansky
0011 
0012  Distributed under the Boost Software License, Version 1.0.
0013  (See accompanying file LICENSE_1_0.txt or
0014  copy at http://www.boost.org/LICENSE_1_0.txt)
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 } // namespace odeint
0050 } // namespace numeric
0051 } // namespace boost
0052 
0053 
0054 
0055 #endif // BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_COPY_HPP_INCLUDED