tfel
Loading...
Searching...
No Matches
tfel::math::AbsSum< T > Struct Template Reference

a basic functor accumulating the absolute value of a container More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/General/Abs.hxx>

Public Types

using argument_type = T
 a simple alias
using result_type = void
 a simple alias

Public Member Functions

TFEL_HOST_DEVICE constexpr AbsSum (const T &v=T())
TFEL_HOST_DEVICE constexpr void operator() (const T &v) noexcept
 add the absolute value of the argument to the result member

Public Attributes

T result
 result

Detailed Description

template<ScalarConcept T>
struct tfel::math::AbsSum< T >

a basic functor accumulating the absolute value of a container

Constructor & Destructor Documentation

◆ AbsSum()

template<ScalarConcept T>
TFEL_HOST_DEVICE constexpr tfel::math::AbsSum< T >::AbsSum ( const T & v = T())
inlineexplicitconstexpr
Parameters
[in]v: initial value

The documentation for this struct was generated from the following file: