33 double nd_step,
double tolerance) {
37 expression.
value(values), expression);
48 #define EXPECT_CORRECT_EXPRESSION_JACOBIANS(expression, values, numerical_derivative_step, tolerance) \ 49 { EXPECT(gtsam::internal::testExpressionJacobians(name_, expression, values, numerical_derivative_step, tolerance)); } bool testExpressionJacobians(const std::string &name_, const gtsam::Expression< T > &expression, const gtsam::Values &values, double nd_step, double tolerance)
Concept check for values that can be used in unit tests.
Evaluate derivatives of a nonlinear factor numerically.
static shared_ptr Create(size_t dim)
bool testFactorJacobians(const std::string &name_, const NoiseModelFactor &factor, const gtsam::Values &values, double delta, double tolerance)
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
T value(const Values &values, std::vector< Matrix > *H=nullptr) const
Return value and optional derivatives, reverse AD version Notes: this is not terribly efficient...