We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88c95f commit f6a157eCopy full SHA for f6a157e
1 file changed
stan/math/prim/err/constraint_tolerance.hpp
@@ -1,15 +1,21 @@
1
#ifndef STAN_MATH_PRIM_ERR_CONSTRAINT_TOLERANCE_HPP
2
#define STAN_MATH_PRIM_ERR_CONSTRAINT_TOLERANCE_HPP
3
4
+#ifndef STAN_MATH_CONSTRAINT_TOLERANCE
5
+#define STAN_MATH_CONSTRAINT_TOLERANCE 1E-8
6
+#endif
7
+
8
#include <stan/math/prim/meta.hpp>
9
namespace stan {
10
namespace math {
11
12
/**
13
* The tolerance for checking arithmetic bounds in rank and in
14
* simplexes. The default value is <code>1E-8</code>.
15
+ * This can changed by defining <code>STAN_MATH_CONSTRAINT_TOLERANCE</code>
16
+ * at compile time.
17
*/
-const double CONSTRAINT_TOLERANCE = 1E-8;
18
+const double CONSTRAINT_TOLERANCE = STAN_MATH_CONSTRAINT_TOLERANCE;
19
20
} // namespace math
21
} // namespace stan
0 commit comments