12345678910111213141516171819202122232425262728293031 |
- #ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED
- #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED
- #include <nt2/core/container/table/table.hpp>
- #include <nt2/include/functions/globalmax.hpp>
- #include <nt2/include/functions/abs.hpp>
- #include <boost/numeric/odeint/algebra/vector_space_algebra.hpp>
- namespace boost { namespace numeric { namespace odeint
- {
- template<typename T, typename S>
- struct vector_space_norm_inf<nt2::container::table<T,S> >
- {
- typedef T result_type;
- result_type operator()(const nt2::container::table<T,S> &v1) const
- {
- return nt2::globalmax(nt2::abs(v1));
- }
- };
- } } }
- #endif
|