From 6cf1f667deedde59136a0ad46d1a6ff4fb7337c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Fri, 10 Jan 2020 15:20:45 +0200 Subject: [PATCH] Default tolerance constant. Former-commit-id: 19951825d21f94455da0228430a674eec37e7653 --- qpms/tolerances.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qpms/tolerances.h b/qpms/tolerances.h index e3259a9..48e0a13 100644 --- a/qpms/tolerances.h +++ b/qpms/tolerances.h @@ -2,9 +2,14 @@ #ifndef QPMS_TOLERANCES_H #define QPMS_TOLERANCES_H +// TODO DOC + typedef struct qpms_tolerance_spec_t { double atol; double rtol; } 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