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

\( f(x) = x + c\) More...

Public Member Functions

 PLUS (T value)
 Construct. More...
 
DG_DEVICEoperator() (T x) const
 

Detailed Description

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

\( f(x) = x + c\)

Constructor & Destructor Documentation

◆ PLUS()

template<class T = double>
dg::PLUS< T >::PLUS ( value)
inline

Construct.

Parameters
valuethe constant c to be added

Member Function Documentation

◆ operator()()

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

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