From 5e7ce8a950cf5794c63817827ce66a3a4e66e7b6 Mon Sep 17 00:00:00 2001 From: Sameer Agarwal Date: Wed, 6 Mar 2013 11:38:41 -0800 Subject: [PATCH] Fix Problem::Evaluate documentation Change-Id: I8c70a24743cff2d9cface99ef0f5d34c78f769c6 --- include/ceres/problem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ceres/problem.h b/include/ceres/problem.h index b1ccbab5d..0a449cb99 100644 --- a/include/ceres/problem.h +++ b/include/ceres/problem.h @@ -383,7 +383,7 @@ class Problem { // // Problem problem; // double x = 1; - // problem.Add(new MyCostFunction, NULL, &x); + // problem.AddResidualBlock(new MyCostFunction, NULL, &x); // // double cost = 0.0; // problem.Evaluate(Problem::EvaluateOptions(), &cost, NULL, NULL, NULL);