2020-01-08 14:39:29 +02:00
|
|
|
/*! \file tolerances.h */
|
|
|
|
#ifndef QPMS_TOLERANCES_H
|
|
|
|
#define QPMS_TOLERANCES_H
|
2022-03-30 09:47:06 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2020-01-08 14:39:29 +02:00
|
|
|
|
2020-01-10 15:20:45 +02:00
|
|
|
// TODO DOC
|
|
|
|
|
2020-01-08 14:39:29 +02:00
|
|
|
typedef struct qpms_tolerance_spec_t {
|
|
|
|
double atol;
|
|
|
|
double rtol;
|
|
|
|
} qpms_tolerance_spec_t;
|
|
|
|
|
2020-01-10 15:20:45 +02:00
|
|
|
/// A rather arbitrary default tolerance.
|
2020-03-18 09:34:05 +02:00
|
|
|
static const qpms_tolerance_spec_t QPMS_TOLERANCE_DEFAULT = {.atol = 1e-9, .rtol = 1e-8};
|
2020-01-10 15:20:45 +02:00
|
|
|
|
2022-03-30 09:47:06 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2020-01-08 14:39:29 +02:00
|
|
|
#endif // QPMS_TOLERANCES_H
|