Test harness methods for expressions.
More...
Go to the source code of this file.
|
| namespace | gtsam |
| | Global functions in a separate testing namespace.
|
|
| #define | EXPECT_CORRECT_EXPRESSION_JACOBIANS(expression, values, numerical_derivative_step, tolerance) |
| | Check the Jacobians produced by an expression against finite differences.
|
|
|
template<typename T> |
| bool | gtsam::internal::testExpressionJacobians (const std::string &name_, const gtsam::Expression< T > &expression, const gtsam::Values &values, double nd_step, double tolerance) |
Test harness methods for expressions.
- Date
- September 18, 2014
- Author
- Frank Dellaert
-
Paul Furgale
◆ EXPECT_CORRECT_EXPRESSION_JACOBIANS
| #define EXPECT_CORRECT_EXPRESSION_JACOBIANS |
( |
| expression, |
|
|
| values, |
|
|
| numerical_derivative_step, |
|
|
| tolerance ) |
Value:{ EXPECT(gtsam::internal::testExpressionJacobians(name_, expression, values, numerical_derivative_step, tolerance)); }
Check the Jacobians produced by an expression against finite differences.
- Parameters
-
| expression | The expression to test. |
| values | Values filled in for testing the Jacobians. |
| numerical_derivative_step | The step to use when computing the finite difference Jacobians |
| tolerance | The numerical tolerance to use when comparing Jacobians. |