Gradient Augmented Levelset Implementation in CPU & GPU
utilities.h File Reference

(Latest change: Author:Lakshman Anumolu <acrlakshman@yahoo.co.in>, 2019-07-26 22:25:50 -0500, [commit: 8a07ea1])

#include <math.h>
#include <string.h>

Go to the source code of this file.

Namespaces

 GALS
 

Macros

#define GALS_FUNCTION_NOT_IMPLEMENTED(var)
 
#define GALS_ABORT(var)
 

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.
 

Macro Definition Documentation

#define GALS_ABORT (   var)
Value:
std::cout << "ERROR: " << #var << std::endl; \
exit(0);

Definition at line 48 of file utilities.h.

#define GALS_FUNCTION_NOT_IMPLEMENTED (   var)
Value:
std::cout << "FUNCTION_NOT_IMPLEMENTED: " << #var << std::endl; \
exit(0);

Definition at line 40 of file utilities.h.