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

\( f(x) = f(x,y) = f(x,y,z) = ax+b \) More...

Public Member Functions

 LinearX (double a, double b)
 Construct with two coefficients. More...
 
DG_DEVICE double operator() (double x) const
 
DG_DEVICE double operator() (double x, double y) const
 
DG_DEVICE double operator() (double x, double y, double z) const
 

Detailed Description

\( f(x) = f(x,y) = f(x,y,z) = ax+b \)

Constructor & Destructor Documentation

◆ LinearX()

dg::LinearX::LinearX ( double  a,
double  b 
)
inline

Construct with two coefficients.

Parameters
alinear coefficient
bconstant coefficient

Member Function Documentation

◆ operator()() [1/3]

DG_DEVICE double dg::LinearX::operator() ( double  x) const
inline

◆ operator()() [2/3]

DG_DEVICE double dg::LinearX::operator() ( double  x,
double  y 
) const
inline

◆ operator()() [3/3]

DG_DEVICE double dg::LinearX::operator() ( double  x,
double  y,
double  z 
) const
inline

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