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

\( f(x) = \) x mod m > 0 ? x mod m : x mod m + m More...

Public Member Functions

 MOD (T m)
 Construct from modulo. More...
 
DG_DEVICEoperator() (T x) const
 

Detailed Description

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

\( f(x) = \) x mod m > 0 ? x mod m : x mod m + m

returns (positive) modulo

Template Parameters
Tvalue type

Constructor & Destructor Documentation

◆ MOD()

template<class T = double>
dg::MOD< T >::MOD ( m)
inline

Construct from modulo.

Parameters
mmodulo basis

Member Function Documentation

◆ operator()()

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

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