Sturm  0.0.0
Computing Sturm sequences in C++
Loading...
Searching...
No Matches
Sturm.hh File Reference
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <Eigen/Dense>
Include dependency graph for Sturm.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Sturm
 Namespace for the Sturm library.

Macros

#define INCLUDE_STURM_HH
#define STURM_ERROR(MSG)
#define STURM_ASSERT(COND, MSG)
#define STURM_WARNING(MSG)
#define STURM_ASSERT_WARNING(COND, MSG)
#define STURM_DEFAULT_INTEGER_TYPE   int

Typedefs

using Sturm::Integer = STURM_DEFAULT_INTEGER_TYPE
 The Integer type as used for the API.

Macro Definition Documentation

◆ INCLUDE_STURM_HH

#define INCLUDE_STURM_HH

◆ STURM_ASSERT

#define STURM_ASSERT ( COND,
MSG )
Value:
if (!(COND)) { \
STURM_ERROR(MSG); \
}

◆ STURM_ASSERT_WARNING

#define STURM_ASSERT_WARNING ( COND,
MSG )
Value:
if (!(COND)) { \
STURM_WARNING(MSG); \
}

◆ STURM_DEFAULT_INTEGER_TYPE

#define STURM_DEFAULT_INTEGER_TYPE   int

◆ STURM_ERROR

#define STURM_ERROR ( MSG)
Value:
{ \
std::ostringstream os; \
os << MSG; \
throw std::runtime_error(os.str()); \
}

◆ STURM_WARNING

#define STURM_WARNING ( MSG)
Value:
{ std::cout << MSG << std::endl; }