#include <source/toolbox/base/Utilities.h>
Static Public Member Functions | |
static int | imin (const int a, const int b) |
static int | imax (const int a, const int b) |
static int | iabs (const int a) |
static float | fmin (const float a, const float b) |
static float | fmax (const float a, const float b) |
static float | fabs (const float a) |
static bool | feq (const float a, const float b) |
static double | dmin (const double a, const double b) |
static double | dmax (const double a, const double b) |
static double | dabs (const double a) |
static bool | deq (const double a, const double b) |
static bool | ceq (const dcomplex a, const dcomplex b) |
static void | recursiveMkdir (const string &path, mode_t mode=(S_IRUSR|S_IWUSR|S_IXUSR), bool only_node_zero_creates=true) |
static void | renameFile (const char *old_filename, const char *new_filename) |
static void | abort (const string &message, const string &filename, const int line) |
static void | printWarning (const string &message, const string &filename, const int line) |
|
Calculate the minimum of two integers. |
|
Calculate the maximum of two integers. |
|
Calculate the absolute value of an integer. |
|
Calculate the minimum of two floats. |
|
Calculate the maximum of two floats. |
|
Calculate the absolute value of a float. |
|
Returns true if a and b have a relative difference less than sqrt(mach_eps). |
|
Calculate the minimum of two doubles. |
|
Calculate the maximum of two doubles. |
|
Calculate the absolute value of a double. |
|
Returns true if a and b have a relative difference less than sqrt(mach_eps). |
|
Returns true if both the real and imaginary parts of a and b have a relative difference less than sqrt(mach_eps). |
|
Creates the directory specified in path. Permissions are set by default to rwx by user. The intermediate directories in the path are created if they do not already exist. When only_node_zero_creates is true, only node zero creates the directories. Otherwise, all nodes create the directories. |
|
Rename a file. |
|
Aborts the run after printing an error message with file and linenumber information. |
|
Logs warning message with file & location. |