Back to home page

EIC code displayed by LXR

 
 

    


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

0001 //==============================================================================
0002 //         Copyright 2014          LRI    UMR 8623 CNRS/Univ Paris Sud XI
0003 //         Copyright 2014          NumScale SAS
0004 //
0005 //          Distributed under the Boost Software License, Version 1.0.
0006 //                 See accompanying file LICENSE.txt or copy at
0007 //                     http://www.boost.org/LICENSE_1_0.txt
0008 //==============================================================================
0009 #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED
0010 #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED
0011 
0012 #include <nt2/core/container/table/table.hpp>
0013 #include <nt2/include/functions/globalmax.hpp>
0014 #include <nt2/include/functions/abs.hpp>
0015 
0016 #include <boost/numeric/odeint/algebra/vector_space_algebra.hpp>
0017 
0018 namespace boost { namespace numeric { namespace odeint
0019 {
0020   template<typename T, typename S>
0021   struct vector_space_norm_inf<nt2::container::table<T,S> >
0022   {
0023     typedef T result_type;
0024     result_type operator()(const nt2::container::table<T,S> &v1) const
0025     {
0026       return nt2::globalmax(nt2::abs(v1));
0027     }
0028   };
0029 } } }
0030 
0031 #endif