nt2_copy.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. //==============================================================================
  2. // Copyright 2014 LASMEA UMR 6602 CNRS/Univ. Clermont II
  3. // Copyright 2014 LRI UMR 8623 CNRS/Univ Paris Sud XI
  4. // Copyright 2014 MetaScale SAS
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // See accompanying file LICENSE.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt
  9. //==============================================================================
  10. #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_COPY_HPP_INCLUDED
  11. #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_COPY_HPP_INCLUDED
  12. #include <nt2/core/container/table/table.hpp>
  13. #include <boost/numeric/odeint/util/copy.hpp>
  14. namespace boost { namespace numeric { namespace odeint {
  15. template<typename T, typename S>
  16. struct copy_impl< nt2::container::table<T,S>
  17. , nt2::container::table<T,S>
  18. >
  19. {
  20. static void copy ( const nt2::container::table<T,S> &v1
  21. , nt2::container::table<T,S> &v2
  22. )
  23. {
  24. v2 = v1;
  25. }
  26. };
  27. } } }
  28. #endif