Expression Templates Library (ETL)
norm.hpp
1 //=======================================================================
2 // Copyright (c) 2014-2023 Baptiste Wicht
3 // Distributed under the terms of the MIT License.
4 // (See accompanying file LICENSE or copy at
5 // http://opensource.org/licenses/MIT)
6 //=======================================================================
7 
13 #pragma once
14 
15 //Include the implementations
16 #include "etl/impl/std/norm.hpp"
17 
18 namespace etl::detail {
19 
23 struct norm_impl {
29  template <typename A>
30  static value_t<A> apply(const A& a) {
31  return etl::impl::standard::norm(a);
32  }
33 };
34 
35 } //end of namespace etl::detail
Functor for euclidean norm.
Definition: norm.hpp:23
Definition: expression_builder.hpp:699
static value_t< A > apply(const A &a)
Apply the functor to a.
Definition: norm.hpp:30
Standard implementation of the "norm" reduction.
typename decay_traits< E >::value_type value_t
Traits to extract the value type out of an ETL type.
Definition: tmp.hpp:81