File indexing completed on 2025-07-12 08:21:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_NORM_INF_HPP_INCLUDED
0019 #define BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_NORM_INF_HPP_INCLUDED
0020
0021 #include <cmath>
0022 #include <algorithm>
0023
0024 namespace boost {
0025 namespace numeric {
0026 namespace odeint {
0027 namespace detail {
0028
0029 template< typename Value , class Iterator1 >
0030 inline Value norm_inf( Iterator1 first1 , Iterator1 last1 , Value init )
0031 {
0032 using std::max;
0033 using std::abs;
0034 for( ; first1 != last1 ; )
0035 init = max( init , abs( *first1++ ) );
0036 return init;
0037 }
0038
0039
0040 }
0041 }
0042 }
0043 }
0044
0045
0046 #endif