Commit 441b0ac6 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Make variable const instead of constexpr

Clang complains that this must be initializes from a constexpr
(which is maybe not the case here). However, there's no need for
constexpr here, so let's calm down clang and make the test pass again.
parent 8fc8c0ee
Pipeline #6542 passed with stage
in 2 minutes and 16 seconds
......@@ -403,7 +403,7 @@ void testDirectionalRestrictionSubdifferential(const Functional& functional,
restriction.subDiff(v, subDifferential);
// Step size. Best value: square root of the machine precision
constexpr double eps = std::sqrt(std::numeric_limits<double>::epsilon());
const double eps = std::sqrt(std::numeric_limits<double>::epsilon());
auto forwardFDGradient = (restriction(v+eps) - restriction(v)) / eps;
auto backwardFDGradient = (restriction(v) - restriction(v-eps)) / eps;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment