• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //==============================================================================
2 //         Copyright 2014          LRI    UMR 8623 CNRS/Univ Paris Sud XI
3 //         Copyright 2014          NumScale SAS
4 //
5 //          Distributed under the Boost Software License, Version 1.0.
6 //                 See accompanying file LICENSE.txt or copy at
7 //                     http://www.boost.org/LICENSE_1_0.txt
8 //==============================================================================
9 #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED
10 #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED
11 
12 #include <nt2/core/container/table/table.hpp>
13 #include <nt2/include/functions/globalmax.hpp>
14 #include <nt2/include/functions/abs.hpp>
15 
16 #include <boost/numeric/odeint/algebra/vector_space_algebra.hpp>
17 
18 namespace boost { namespace numeric { namespace odeint
19 {
20   template<typename T, typename S>
21   struct vector_space_norm_inf<nt2::container::table<T,S> >
22   {
23     typedef T result_type;
operator ()boost::numeric::odeint::vector_space_norm_inf24     result_type operator()(const nt2::container::table<T,S> &v1) const
25     {
26       return nt2::globalmax(nt2::abs(v1));
27     }
28   };
29 } } }
30 
31 #endif
32