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

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

#include <reducers.hpp>

Public Types

using value_type = DevicePair<T, T>
 

Static Public Member Functions

static MFEM_HOST_DEVICE void Join (value_type &a, const 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()
 
static constexpr T max_val = std::numeric_limits<T>::max()
 

Detailed Description

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

a = minmax(a,b)

Definition at line 194 of file reducers.hpp.

Member Typedef Documentation

◆ value_type

template<class T >
using mfem::MinMaxReducer< T >::value_type = DevicePair<T, T>

Definition at line 196 of file reducers.hpp.

Member Function Documentation

◆ Join()

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

Definition at line 197 of file reducers.hpp.

◆ SetInitialValue()

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

Definition at line 216 of file reducers.hpp.

Member Data Documentation

◆ max_val

template<class T >
T mfem::MinMaxReducer< T >::max_val = std::numeric_limits<T>::max()
staticconstexpr

Definition at line 214 of file reducers.hpp.

◆ min_val

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

Definition at line 213 of file reducers.hpp.


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