#include <iostream>
#include <ios>
#include <iomanip>
#include <string>
#include <cmath>
#include <vector>
#include <map>
#include <memory>
#include <numeric>
#include <algorithm>
#include <Eigen/Dense>
Go to the source code of this file.
◆ INCLUDE_OPTIMIST_HH
#define INCLUDE_OPTIMIST_HH |
◆ OPTIMIST_ASSERT
#define OPTIMIST_ASSERT |
( |
| COND, |
|
|
| MSG ) |
Value: if (!(COND)) \
{ \
OPTIMIST_ERROR(MSG); \
}
◆ OPTIMIST_ASSERT_WARNING
#define OPTIMIST_ASSERT_WARNING |
( |
| COND, |
|
|
| MSG ) |
Value: if (!(COND)) \
{ \
OPTIMIST_WARNING(MSG); \
}
◆ OPTIMIST_BASIC_CONSTANTS
#define OPTIMIST_BASIC_CONSTANTS |
( |
| Real | ) |
|
Value: static constexpr Real EPSILON{std::numeric_limits<Real>::epsilon()}; \
static constexpr Real EPSILON_HIGH{1.0e-12}; \
static constexpr Real EPSILON_MEDIUM{1.0e-10}; \
static constexpr Real EPSILON_LOW{1.0e-08}; \
static constexpr Real INFTY{std::numeric_limits<Real>::infinity()}; \
static constexpr Real QUIET_NAN{std::numeric_limits<Real>::quiet_NaN()};
Not-a-number static constant value.
◆ OPTIMIST_DEFAULT_INTEGER_TYPE
#define OPTIMIST_DEFAULT_INTEGER_TYPE int |
◆ OPTIMIST_ERROR
#define OPTIMIST_ERROR |
( |
| MSG | ) |
|
Value: { \
std::ostringstream os; \
os << MSG; \
throw std::runtime_error(os.str()); \
}
◆ OPTIMIST_WARNING
#define OPTIMIST_WARNING |
( |
| MSG | ) |
|
Value: { \
std::cout << MSG << std::endl; \
}