40 #define GALS_FUNCTION_NOT_IMPLEMENTED(var) \ 41 std::cout << "FUNCTION_NOT_IMPLEMENTED: " << #var << std::endl; \ 44 #define GALS_FUNCTION_NOT_IMPLEMENTED(var) std::cout << "FUNCTION_NOT_IMPLEMENTED: " << #var << std::endl; 48 #define GALS_ABORT(var) \ 49 std::cout << "ERROR: " << #var << std::endl; \ 52 #define GALS_ABORT(var) std::cout << "ERROR: " << #var << std::endl; 55 static double pi() {
return atan(1) * 4; }
73 static bool is_equal(
int a,
int b) {
return a == b; }
static const double two_thirds
static bool is_equal(double a, double b)
static const double one_third
static T sqr(T a)
Compute square.
static T cube(T a)
Compute cube.