]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/numeric/odeint/include/boost/numeric/odeint/external/nt2/nt2_norm_inf.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / numeric / odeint / include / boost / numeric / odeint / external / nt2 / nt2_norm_inf.hpp
CommitLineData
7c673cae
FG
1//==============================================================================
2// Copyright 2014 LRI UMR 8623 CNRS/Univ Paris Sud XI
3// Copyright 2014 NumScale SAS
4//
5// Distributed under the Boost Software License, Version 1.0.
6// See accompanying file LICENSE.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt
8//==============================================================================
9#ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED
10#define BOOST_NUMERIC_ODEINT_EXTERNAL_NT2_NT2_NORM_INF_HPP_INCLUDED
11
12#include <nt2/core/container/table/table.hpp>
13#include <nt2/include/functions/globalmax.hpp>
14#include <nt2/include/functions/abs.hpp>
15
16#include <boost/numeric/odeint/algebra/vector_space_algebra.hpp>
17
18namespace boost { namespace numeric { namespace odeint
19{
20 template<typename T, typename S>
21 struct vector_space_norm_inf<nt2::container::table<T,S> >
22 {
23 typedef T result_type;
24 result_type operator()(const nt2::container::table<T,S> &v1) const
25 {
26 return nt2::globalmax(nt2::abs(v1));
27 }
28 };
29} } }
30
31#endif