vexcl_copy.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. [auto_generated]
  3. boost/numeric/odeint/external/vexcl/vexcl_copy.hpp
  4. [begin_description]
  5. copy_impl specializations for vexcl
  6. [end_description]
  7. Copyright 2009-2011 Karsten Ahnert
  8. Copyright 2009-2011 Mario Mulansky
  9. Distributed under the Boost Software License, Version 1.0.
  10. (See accompanying file LICENSE_1_0.txt or
  11. copy at http://www.boost.org/LICENSE_1_0.txt)
  12. */
  13. #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_COPY_HPP_INCLUDED
  14. #define BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_COPY_HPP_INCLUDED
  15. #include <vexcl/vector.hpp>
  16. #include <vexcl/multivector.hpp>
  17. #include <boost/numeric/odeint/util/copy.hpp>
  18. namespace boost {
  19. namespace numeric {
  20. namespace odeint {
  21. template< typename T1, typename T2 >
  22. struct copy_impl< vex::vector<T1>, vex::vector<T2> >
  23. {
  24. static void copy( const vex::vector<T1> &from , vex::vector<T2> &to )
  25. {
  26. to = from;
  27. }
  28. };
  29. template< typename T1, typename T2, size_t N >
  30. struct copy_impl< vex::multivector<T1, N>, vex::multivector<T2, N> >
  31. {
  32. static void copy( const vex::multivector<T1, N> &from , vex::multivector<T2, N> &to )
  33. {
  34. to = from;
  35. }
  36. };
  37. } // namespace odeint
  38. } // namespace numeric
  39. } // namespace boost
  40. #endif // BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_COPY_HPP_INCLUDED