Discontinuous Galerkin Library
#include "dg/algorithm.h"
dg::Sign< T > Struct Template Reference

\( f(x) = \text{sgn}(x) = \begin{cases} -1 \text{ for } x < 0 \\ 0 \text{ for } x = 0 \\ +1 \text{ for } x > 0 \end{cases}\) More...

Public Member Functions

DG_DEVICEoperator() (T x) const
 

Detailed Description

template<class T = double>
struct dg::Sign< T >

\( f(x) = \text{sgn}(x) = \begin{cases} -1 \text{ for } x < 0 \\ 0 \text{ for } x = 0 \\ +1 \text{ for } x > 0 \end{cases}\)

Member Function Documentation

◆ operator()()

template<class T = double>
DG_DEVICE T dg::Sign< T >::operator() ( x) const
inline

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