diff --git a/gtsam_unstable/nonlinear/Expression-inl.h b/gtsam_unstable/nonlinear/Expression-inl.h index 3a5dd0afc..e68bf6824 100644 --- a/gtsam_unstable/nonlinear/Expression-inl.h +++ b/gtsam_unstable/nonlinear/Expression-inl.h @@ -115,6 +115,7 @@ struct JacobianTrace { JacobianMap& jacobians) const = 0; }; +/// Primary template calls the generic Matrix reverseAD pipeline template struct Select { typedef Eigen::Matrix Jacobian; @@ -124,6 +125,7 @@ struct Select { } }; +/// Partially specialized template calls the 2-dimensional output version template struct Select<2, A> { typedef Eigen::Matrix Jacobian;