FflasFfpack
Data Structures | Namespaces | Macros | Functions
debug.h File Reference

Various utilities for debugging. More...

#include <fflas-ffpack/fflas-ffpack-config.h>
#include <iostream>
#include <sstream>
#include <cmath>
#include <stdexcept>

Data Structures

class  Failure
 A precondtion failed. More...
 

Namespaces

namespace  FFPACK
 Finite Field PACK Set of elimination based routines for dense linear algebra.
 

Macros

#define FFLASFFPACK_check(check)
 
#define FFLASFFPACK_abort(msg)
 

Functions

Failure & failure ()
 
template<class T >
bool isOdd (const T &a)
 
bool isOdd (const float &a)
 
bool isOdd (const double &a)
 

Detailed Description

Various utilities for debugging.

Todo:
we should put vector printing elsewhere.

Macro Definition Documentation

◆ FFLASFFPACK_check

#define FFLASFFPACK_check (   check)
Value:
if (!(check)) {\
FFPACK::failure()(__func__, __FILE__, __LINE__, #check); \
throw std::runtime_error(#check); \
}
Failure & failure()
Definition: debug.h:174

◆ FFLASFFPACK_abort

#define FFLASFFPACK_abort (   msg)
Value:
{\
FFPACK::failure()(__func__, __FILE__, __LINE__, msg); \
throw std::runtime_error(msg); \
}