diff --git a/gtsam/base/OptionalJacobian.h b/gtsam/base/OptionalJacobian.h index d0e2297ef..c0ac8cd7f 100644 --- a/gtsam/base/OptionalJacobian.h +++ b/gtsam/base/OptionalJacobian.h @@ -171,6 +171,16 @@ public: // forward declare template struct traits; +/** + * @brief: meta-function to generate Jacobian + * @param T return type + * @param A argument type + */ +template +struct MakeJacobian { + typedef Eigen::Matrix::dimension, traits::dimension> type; +}; + /** * @brief: meta-function to generate JacobianTA optional reference * Used mainly by Expressions