Skip to content

Commit 329ebed

Browse files
committed
tweak tolerances
1 parent 2da4cd6 commit 329ebed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_autodiff_9.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_general, T, all_float_types) {
150150
BOOST_CHECK_EQUAL(y3[3].derivative(2), exp(x[3].derivative(0)));
151151

152152
// Check pow (without negative or zero)
153-
T powTol = 1e-5;
153+
T powTol = 1e-4;
154154
BOOST_CHECK_CLOSE(y4[2].derivative(0), pow(x[2].derivative(0), p), powTol);
155155
BOOST_CHECK_CLOSE(y4[3].derivative(0), pow(x[3].derivative(0), p), powTol);
156156
BOOST_CHECK_CLOSE(y4[2].derivative(1), p * pow(x[2].derivative(0), p - 1),
@@ -237,7 +237,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_vector, T, all_float_types) {
237237

238238
Eigen::Matrix<fTn, dim, 1> Y = M * X;
239239

240-
T powTol = 1e-5;
240+
T powTol = 1e-4;
241241

242242
// Y[0] = 1 + 2*x + x*x*x
243243
BOOST_CHECK_CLOSE(Y[0].derivative(0), 1 + 2 * xD0 + pow(xD0, 3), powTol);

0 commit comments

Comments
 (0)