3 boost/numeric/odeint/algebra/detail/norm_inf.hpp
6 Default reduce implementation.
9 Copyright 2013 Karsten Ahnert
10 Copyright 2013 Mario Mulansky
12 Distributed under the Boost Software License, Version 1.0.
13 (See accompanying file LICENSE_1_0.txt or
14 copy at http://www.boost.org/LICENSE_1_0.txt)
18 #ifndef BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_NORM_INF_HPP_INCLUDED
19 #define BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_NORM_INF_HPP_INCLUDED
28 template< typename Value , class Iterator1 >
29 inline Value norm_inf( Iterator1 first1 , Iterator1 last1 , Value init )
33 for( ; first1 != last1 ; )
34 init = max( init , abs( *first1++ ) );
45 #endif // BOOST_NUMERIC_ODEINT_ALGEBRA_DETAIL_NORM_INF_HPP_INCLUDED