MFEM v4.8.0
Finite element discretization library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
mfem::MaxReducer< T > Struct Template Reference

a = max(a,b) More...

#include <reducers.hpp>

Public Types

using value_type = T
 

Static Public Member Functions

static MFEM_HOST_DEVICE void Join (value_type &a, value_type b)
 
static MFEM_HOST_DEVICE void SetInitialValue (value_type &a)
 

Static Public Attributes

static constexpr T min_val = std::numeric_limits<T>::min()
 

Detailed Description

template<class T>
struct mfem::MaxReducer< T >

a = max(a,b)

Definition at line 145 of file reducers.hpp.

Member Typedef Documentation

◆ value_type

template<class T >
using mfem::MaxReducer< T >::value_type = T

Definition at line 147 of file reducers.hpp.

Member Function Documentation

◆ Join()

template<class T >
static MFEM_HOST_DEVICE void mfem::MaxReducer< T >::Join ( value_type & a,
value_type b )
inlinestatic

Definition at line 148 of file reducers.hpp.

◆ SetInitialValue()

template<class T >
static MFEM_HOST_DEVICE void mfem::MaxReducer< T >::SetInitialValue ( value_type & a)
inlinestatic

Definition at line 162 of file reducers.hpp.

Member Data Documentation

◆ min_val

template<class T >
T mfem::MaxReducer< T >::min_val = std::numeric_limits<T>::min()
staticconstexpr

Definition at line 160 of file reducers.hpp.


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