|
svZeroDSolver
|
eigen_assert override for builds configured with ENABLE_ASSERTIONS More...
#include <stdexcept>#include <string>Go to the source code of this file.
Macros | |
| #define | eigen_assert(condition) |
| Eigen assertion that throws instead of aborting. | |
Functions | |
| void | svzerod_eigen_assertion_failed (const char *condition, const char *file, int line) |
| Report a violated Eigen assertion. | |
eigen_assert override for builds configured with ENABLE_ASSERTIONS
| #define eigen_assert | ( | condition | ) |
Eigen assertion that throws instead of aborting.
An expression, not a statement, because Eigen also uses eigen_assert inside larger expressions.
| condition | Condition that must hold |
|
inline |
Report a violated Eigen assertion.
Eigen asserts via assert(), which aborts the process. Inside the svzerod extension module that would tear down the Python interpreter, so throw instead: pybind11 surfaces the exception and only the current call fails.
| condition | Stringified condition that was violated |
| file | Source file containing the assertion |
| line | Line number of the assertion |