22 #include <gtsam/nonlinear/ExpressionFactor.h> 31 bool testExpressionJacobians(
const std::string& name_,
33 double nd_step,
double tolerance) {
35 size_t size = traits<T>::dimension;
37 expression.
value(values), expression);
38 return testFactorJacobians(name_, f, values, nd_step, tolerance);
48 #define EXPECT_CORRECT_EXPRESSION_JACOBIANS(expression, values, numerical_derivative_step, tolerance) \ 49 { EXPECT(gtsam::internal::testExpressionJacobians(name_, expression, values, numerical_derivative_step, tolerance)); } A non-templated config holding any types of Manifold-group elements.
Definition: Values.h:70
Evaluate derivatives of a nonlinear factor numerically.
T value(const Values &values, boost::optional< std::vector< Matrix > & > H=boost::none) const
Return value and optional derivatives, reverse AD version Notes: this is not terribly efficient,...
Definition: Expression-inl.h:132
static shared_ptr Create(size_t dim)
Create a unit covariance noise model.
Definition: NoiseModel.h:601
Expression class that supports automatic differentiation.
Definition: Expression.h:49
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
Concept check for values that can be used in unit tests.