68 template<
class T>
class UList;
80 static bool switchFpe_;
84 static bool switchNan_;
87 static bool sigActive_;
90 static bool nanActive_;
96 static void sigHandler(
int);
121 static inline bool active()
134 static void set(
bool verbose=
false);
137 static void unset(
bool verbose=
false);
141 static void* mallocNan(
size_t size);
161 void operator=(
const ignore&) =
delete;
167 void operator=(
ignore&&) =
delete;
static bool nanActive()
True if NaN memory initialisation is currently active.
static void unset(bool verbose=false)
Deactivate SIGFPE signal handler and NaN memory initialisation.
ignore()
Constructor deactivates any previously active SIGFPE handler.
~sigFpe()
Destructor calls unset() to deactivate the FPE signal handler as required.
Set up trapping for floating point exceptions (signal FPE).
static void fillNan(UList< scalar > &list)
Fill data block with NaN values.
~ignore()
Destructor restores the original state of SIGFPE handler.
Helper to locally ignore SIGFPE handling.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static bool active()
True if SIGFPE handling is currently active.
static bool requested()
Check if SIGFPE signals handler is to be enabled.
sigFpe()
Constructor calls set() to activate the FPE signal handler if it was was not previously activate and ...
void restore()
Restore the original state of SIGFPE handler.