Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 816307f

Browse files
committed
Increase FD order
1 parent 3b8e90b commit 816307f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/tests/distance/test_edge_edge.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ TEST_CASE(
334334
Eigen::VectorXd fgrad;
335335
fd::finite_gradient(x, [&](const Eigen::VectorXd &y) {
336336
return smooth_edge3_normal_term(y.head(3), y.segment(3, 3), y.segment(6, 3), y.segment(9, 3), y.segment(12, 3), alpha, beta, otypes);
337-
}, fgrad, fd::AccuracyOrder::SECOND, 1e-6);
337+
}, fgrad, fd::AccuracyOrder::FOURTH, 1e-5);
338338

339-
CHECK((fgrad - grad).norm() / 1e-6 <= grad.norm());
339+
CHECK((fgrad - grad).norm() / 1e-8 <= grad.norm());
340340

341341
Eigen::MatrixXd fhess;
342342
fd::finite_jacobian(x, [&](const Eigen::VectorXd &y) {

0 commit comments

Comments
 (0)