diff --git a/include/boost/numeric/odeint/external/nt2/nt2_algebra_dispatcher.hpp b/include/boost/numeric/odeint/external/nt2/nt2_algebra_dispatcher.hpp index 22005769..7b82a8b3 100644 --- a/include/boost/numeric/odeint/external/nt2/nt2_algebra_dispatcher.hpp +++ b/include/boost/numeric/odeint/external/nt2/nt2_algebra_dispatcher.hpp @@ -9,7 +9,7 @@ #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_ALGEBRA_DISPATCHER_HPP_INCLUDED #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_ALGEBRA_DISPATCHER_HPP_INCLUDED -#include +#include #include #include diff --git a/include/boost/numeric/odeint/external/nt2/nt2_copy.hpp b/include/boost/numeric/odeint/external/nt2/nt2_copy.hpp index 12bfbe80..0fd55884 100644 --- a/include/boost/numeric/odeint/external/nt2/nt2_copy.hpp +++ b/include/boost/numeric/odeint/external/nt2/nt2_copy.hpp @@ -10,14 +10,20 @@ #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_COPY_HPP_INCLUDED #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_COPY_HPP_INCLUDED -#include +#include + +#include namespace boost { namespace numeric { namespace odeint { template -struct copy_impl , nt2::container::table > +struct copy_impl< nt2::container::table + , nt2::container::table + > { - static void copy(const nt2::container::table &v1, nt2::container::table &v2) + static void copy ( const nt2::container::table &v1 + , nt2::container::table &v2 + ) { v2 = v1; } diff --git a/include/boost/numeric/odeint/external/nt2/nt2_norm_inf.hpp b/include/boost/numeric/odeint/external/nt2/nt2_norm_inf.hpp index d44c5cc4..53b4a807 100644 --- a/include/boost/numeric/odeint/external/nt2/nt2_norm_inf.hpp +++ b/include/boost/numeric/odeint/external/nt2/nt2_norm_inf.hpp @@ -10,10 +10,12 @@ #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED -#include +#include #include #include +#include + namespace boost { namespace numeric { namespace odeint { template struct vector_space_norm_inf > diff --git a/include/boost/numeric/odeint/external/nt2/nt2_resize.hpp b/include/boost/numeric/odeint/external/nt2/nt2_resize.hpp index e0d8bb1c..d9c2359c 100644 --- a/include/boost/numeric/odeint/external/nt2/nt2_resize.hpp +++ b/include/boost/numeric/odeint/external/nt2/nt2_resize.hpp @@ -1,6 +1,6 @@ //============================================================================== // Copyright 2014 LRI UMR 8623 CNRS/Univ Paris Sud XI -// Copyright 2014 NUmScale SAS +// Copyright 2014 NumScale SAS // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or copy at @@ -9,7 +9,9 @@ #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_RESIZE_HPP_INCLUDED #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_RESIZE_HPP_INCLUDED -#include +#include + +#include namespace boost { namespace numeric { namespace odeint { @@ -21,22 +23,28 @@ struct is_resizeable< nt2::container::table > }; template -struct same_size_impl< nt2::container::table , nt2::container::table > +struct same_size_impl< nt2::container::table + , nt2::container::table + > { - static bool same_size( const nt2::container::table &v1 , - const nt2::container::table &v2 ) + static bool same_size ( const nt2::container::table &v1 + , const nt2::container::table &v2 + ) { - return v1.size() == v2.size(); + return v1.extent() == v2.extent(); } }; template -struct resize_impl< nt2::container::table , nt2::container::table > +struct resize_impl< nt2::container::table + , nt2::container::table + > { - static void resize( nt2::container::table &v1 , - const nt2::container::table &v2 ) + static void resize ( nt2::container::table &v1 + , const nt2::container::table &v2 + ) { - v1.resize( nt2::of_size(v2.size() )); + v1.resize( v2.extent() ); } }; } } }