Default tolerance constant.

Former-commit-id: 19951825d21f94455da0228430a674eec37e7653
This commit is contained in:
Marek Nečada 2020-01-10 15:20:45 +02:00
parent c86b881088
commit 6cf1f667de
1 changed files with 5 additions and 0 deletions

View File

@ -2,9 +2,14 @@
#ifndef QPMS_TOLERANCES_H #ifndef QPMS_TOLERANCES_H
#define QPMS_TOLERANCES_H #define QPMS_TOLERANCES_H
// TODO DOC
typedef struct qpms_tolerance_spec_t { typedef struct qpms_tolerance_spec_t {
double atol; double atol;
double rtol; double rtol;
} qpms_tolerance_spec_t; } qpms_tolerance_spec_t;
/// A rather arbitrary default tolerance.
static const qpms_tolerance_spec_t QPMS_TOLERANCE_DEFAULT = {.atol = 1e-15, .rtol = 1e-8};
#endif // QPMS_TOLERANCES_H #endif // QPMS_TOLERANCES_H