mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-31 09:30:36 +08:00
Migrate examples to use Manifolds
Also change NULL to nullptr. Change-Id: I80a2328185d7891f61e07e64d5c1b59e74588ac7
This commit is contained in:
@@ -64,7 +64,7 @@ int main(int argc, char** argv) {
|
||||
// numeric differentiation to obtain the derivative (jacobian).
|
||||
CostFunction* cost_function =
|
||||
new NumericDiffCostFunction<CostFunctor, CENTRAL, 1, 1>(new CostFunctor);
|
||||
problem.AddResidualBlock(cost_function, NULL, &x);
|
||||
problem.AddResidualBlock(cost_function, nullptr, &x);
|
||||
|
||||
// Run the solver!
|
||||
Solver::Options options;
|
||||
|
||||
Reference in New Issue
Block a user