Fix a bug in AutoDiffManifold When computing the MinusJacobian we were passing two different values to AutoDifferentiate for the output dimension. The template argument was correct which is why the method was working correctly but the function argument was incorrect (cut and paste error). This would be fine in release mode, but in debug mode it would trigger a check failure. Change-Id: I0327656d1a4d34c82e4d3a8c04f27c264bce80eb
diff --git a/include/ceres/autodiff_manifold.h b/include/ceres/autodiff_manifold.h index b2f5c9d..8a7601f 100644 --- a/include/ceres/autodiff_manifold.h +++ b/include/ceres/autodiff_manifold.h
@@ -249,7 +249,7 @@ internal::StaticParameterDims<kAmbientSize, kAmbientSize>>( internal::MinusWrapper<Functor>(*functor_), parameter_ptrs, - kAmbientSize, + kTangentSize, y_minus_x, jacobian_ptrs); }