Discontinuous Galerkin Library
#include "dg/algorithm.h"

\( f(x_1, x_2, ...) = \begin{cases} \min(x_1, x_2, ...) &\text{ for } x_1, x_2, ... >0 \\ \max(x_1, x_2, ...) &\text{ for } x_1, x_2, ... <0 \\ 0 &\text{ else} \end{cases} \) More...

Public Member Functions

template<class T >
operator() (T x1, T x2) const
 
template<class T >
DG_DEVICEoperator() (T x1, T x2, T x3) const
 

Detailed Description

\( f(x_1, x_2, ...) = \begin{cases} \min(x_1, x_2, ...) &\text{ for } x_1, x_2, ... >0 \\ \max(x_1, x_2, ...) &\text{ for } x_1, x_2, ... <0 \\ 0 &\text{ else} \end{cases} \)

Useful for Slope limiter

Member Function Documentation

◆ operator()() [1/2]

template<class T >
T dg::MinMod::operator() ( x1,
x2 
) const
inline
Returns
minmod(x1, x2)

◆ operator()() [2/2]

template<class T >
DG_DEVICE T dg::MinMod::operator() ( x1,
x2,
x3 
) const
inline
Returns
minmod(x1, x2, x3);

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