File indexing completed on 2025-01-18 09:42:51
0001
0002
0003
0004
0005
0006
0007
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