Discontinuous Galerkin Library
#include "dg/algorithm.h"
|
\( 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_DEVICE T | operator() (T x) const |
\( f(x) = \) x
mod m > 0 ? x mod m : x mod m + m
returns (positive) modulo
T | value type |
|
inline |
Construct from modulo.
m | modulo basis |