MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::functor::scalar::plus< T1, T2 > Struct Template Reference

#include <plus.hpp>

Public Types

using result_type = std::common_type_t<T1, T2>

Public Member Functions

constexpr result_type operator() (const T1 &a, const T2 &b) const

Static Public Member Functions

static constexpr result_type apply (const T1 &a, const T2 &b)

Member Typedef Documentation

◆ result_type

template<typename T1, typename T2 = T1>
using mtl::functor::scalar::plus< T1, T2 >::result_type = std::common_type_t<T1, T2>

Member Function Documentation

◆ apply()

template<typename T1, typename T2 = T1>
constexpr result_type mtl::functor::scalar::plus< T1, T2 >::apply ( const T1 & a,
const T2 & b )
inlinestaticconstexpr

◆ operator()()

template<typename T1, typename T2 = T1>
result_type mtl::functor::scalar::plus< T1, T2 >::operator() ( const T1 & a,
const T2 & b ) const
inlineconstexpr

The documentation for this struct was generated from the following file:
  • /home/runner/work/mtl5/mtl5/include/mtl/functor/scalar/plus.hpp