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

i = argmin(a[i], a[j]) More...

#include <reducers.hpp>

Public Types

using value_type = DevicePair<T, I>
 

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)
 

Detailed Description

template<class T, class I>
struct mfem::ArgMinReducer< T, I >

i = argmin(a[i], a[j])

Note: for ties the returned index can correspond to any min entry, not necesarily the first one

Definition at line 256 of file reducers.hpp.

Member Typedef Documentation

◆ value_type

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

Definition at line 258 of file reducers.hpp.

Member Function Documentation

◆ Join()

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

Definition at line 259 of file reducers.hpp.

◆ SetInitialValue()

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

Definition at line 266 of file reducers.hpp.


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