Gradient Augmented Levelset Implementation in CPU & GPU
GALS Namespace Reference

Namespaces

 ANALYTICAL_FIELDS
 
 CPU
 
 INPUT_FIELDS
 
 INPUT_PARSER
 
 INTERPOLATION
 
 TEMPORAL_SCHEMES
 
 UTILITIES
 

Functions

static double pi ()
 
static bool is_equal (double a, double b)
 
static bool is_equal (int a, int b)
 Check for equality between integers. More...
 
template<typename T >
static T sqr (T a)
 Compute square. More...
 
template<typename T >
static T cube (T a)
 Compute cube. More...
 

Variables

static double VSMALL = 1e-10
 
static const double one_third = 1. / 3.
 
static const double two_thirds = 2. / 3.
 

Function Documentation

static T GALS::cube ( a)
static

Compute cube.

Definition at line 84 of file utilities.h.

static bool GALS::is_equal ( double  a,
double  b 
)
static

Check for equality within a tolerance.

Tolerance is by default 1e-10.

Parameters
afirst argument
bsecond argument
Returns
number of elements.

Definition at line 70 of file utilities.h.

static bool GALS::is_equal ( int  a,
int  b 
)
static

Check for equality between integers.

Definition at line 73 of file utilities.h.

static double GALS::pi ( )
static

Definition at line 55 of file utilities.h.

static T GALS::sqr ( a)
static

Compute square.

Definition at line 77 of file utilities.h.

Variable Documentation

const double one_third = 1. / 3.
static

Definition at line 58 of file utilities.h.

const double two_thirds = 2. / 3.
static

Definition at line 59 of file utilities.h.

double VSMALL = 1e-10
static

Definition at line 57 of file utilities.h.