fixed: use std::numeric_limits<Scalar> in one more spot
This commit is contained in:
parent
5f36812707
commit
0668699179
@ -275,7 +275,7 @@ struct TestEnvBase
|
||||
Scalar yStar2 = classicFn(x + eps);
|
||||
Scalar yPrime = (yStar2 - yStar1)/(2*eps);
|
||||
|
||||
if (std::abs(y-yEval.value()) > 5e-14)
|
||||
if (std::abs(y-yEval.value()) > std::numeric_limits<Scalar>::epsilon()*1e2)
|
||||
throw std::logic_error("oops: value");
|
||||
|
||||
Scalar deltaAbs = std::abs(yPrime - yEval.derivative(0));
|
||||
|
Loading…
Reference in New Issue
Block a user