Problem::Evaluate implementation.

1. Add Problem::Evaluate and tests.
2. Remove Solver::Summary::initial/final_*
3. Remove Solver::Options::return_* members.
4. Various cpplint cleanups.

Change-Id: I4266de53489896f72d9c6798c5efde6748d68a47
This commit is contained in:
Sameer Agarwal
2013-02-20 01:39:03 -08:00
committed by Gerrit Code Review
parent d4a0bf86d6
commit 509f68cfe3
79 changed files with 1383 additions and 578 deletions
+13 -8
View File
@@ -99,6 +99,9 @@
// of RotateAndTranslatePoint with a numerically differentiated
// version of IntrinsicProjection.
#ifndef CERES_PUBLIC_NUMERIC_DIFF_FUNCTOR_H_
#define CERES_PUBLIC_NUMERIC_DIFF_FUNCTOR_H_
#include "ceres/numeric_diff_cost_function.h"
#include "ceres/types.h"
#include "ceres/cost_function_to_functor.h"
@@ -114,13 +117,14 @@ class NumericDiffFunctor {
public:
// relative_step_size controls the step size used by the numeric
// differentiation process.
NumericDiffFunctor(double relative_step_size = 1e-6)
: functor_(new NumericDiffCostFunction<Functor,
kMethod,
kNumResiduals,
N0, N1, N2, N3, N4,
N5, N6, N7, N8, N9>(
new Functor, relative_step_size)) {
explicit NumericDiffFunctor(double relative_step_size = 1e-6)
: functor_(
new NumericDiffCostFunction<Functor,
kMethod,
kNumResiduals,
N0, N1, N2, N3, N4,
N5, N6, N7, N8, N9>(new Functor,
relative_step_size)) {
}
NumericDiffFunctor(Functor* functor, double relative_step_size = 1e-6)
@@ -335,7 +339,8 @@ class NumericDiffFunctor {
CostFunctionToFunctor<kNumResiduals,
N0, N1, N2, N3, N4,
N5, N6, N7, N8, N9> functor_;
};
} // namespace ceres
#endif // CERES_PUBLIC_NUMERIC_DIFF_FUNCTOR_H_