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 fba4559e..81f867e3 100644 --- a/include/boost/numeric/odeint/external/nt2/nt2_norm_inf.hpp +++ b/include/boost/numeric/odeint/external/nt2/nt2_norm_inf.hpp @@ -10,7 +10,8 @@ #define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED #include -#include +#include +#include #include @@ -22,7 +23,7 @@ namespace boost { namespace numeric { namespace odeint typedef T result_type; result_type operator()(const nt2::container::table &v1) const { - return mnorminf(v1); + return nt2::globalmax(nt2::abs(v1)); } }; } } } diff --git a/test_external/nt2/norm_inf.cpp b/test_external/nt2/norm_inf.cpp index 484200f1..1e120616 100644 --- a/test_external/nt2/norm_inf.cpp +++ b/test_external/nt2/norm_inf.cpp @@ -39,12 +39,8 @@ BOOST_AUTO_TEST_CASE_TEMPLATE( test_norm_inf, T, fp_types ) nt2::table y = nt2::zeros(8,8, nt2::meta::as_() ); y(6,4) = -42; - nt2::table z = nt2::ones(1,10, nt2::meta::as_() ); - z(4) = 55; - BOOST_CHECK_SMALL(vector_space_norm_inf >()(x) - T(55), T(1e-10)); BOOST_CHECK_SMALL(vector_space_norm_inf >()(y) - T(42), T(1e-10)); - BOOST_CHECK_SMALL(vector_space_norm_inf >()(z) - T(64), T(1e-10)); } BOOST_AUTO_TEST_SUITE_END()