mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix an error in the tutorial code for NumericDiffCostFunction
Thanks to Gohteu Nuetah for pointing it out. Change-Id: Ibfeb9ab9dfbdb259f35b1b8f6b85d30a363db7d4
This commit is contained in:
@@ -210,8 +210,8 @@ Which is added to the :class:`Problem` as:
|
||||
.. code-block:: c++
|
||||
|
||||
CostFunction* cost_function =
|
||||
new NumericDiffCostFunction<NumericDiffCostFunctor, ceres::CENTRAL, 1, 1, 1>(
|
||||
new NumericDiffCostFunctor)
|
||||
new NumericDiffCostFunction<NumericDiffCostFunctor, ceres::CENTRAL, 1, 1>(
|
||||
new NumericDiffCostFunctor);
|
||||
problem.AddResidualBlock(cost_function, NULL, &x);
|
||||
|
||||
Notice the parallel from when we were using automatic differentiation
|
||||
|
||||
Reference in New Issue
Block a user