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
diff --git a/internal/ceres/polynomial_test.cc b/internal/ceres/polynomial_test.cc
index 7c992fa..3339973 100644
--- a/internal/ceres/polynomial_test.cc
+++ b/internal/ceres/polynomial_test.cc
@@ -342,8 +342,8 @@
TEST(Polynomial, QuadraticInterpolatingPolynomial) {
// p(x) = 2x^2 + 3x + 2
- Vector true_polynomial(3);
- true_polynomial << 2.0, 3.0, 2.0;
+ Vector true_polynomial(3);
+ true_polynomial << 2.0, 3.0, 2.0;
vector<FunctionSample> samples;
{
@@ -401,10 +401,10 @@
TEST(Polynomial, CubicInterpolatingPolynomialFromValues) {
// p(x) = x^3 + 2x^2 + 3x + 2
- Vector true_polynomial(4);
- true_polynomial << 1.0, 2.0, 3.0, 2.0;
+ Vector true_polynomial(4);
+ true_polynomial << 1.0, 2.0, 3.0, 2.0;
- vector<FunctionSample> samples;
+ vector<FunctionSample> samples;
{
FunctionSample sample;
sample.x = 1.0;
@@ -443,11 +443,11 @@
TEST(Polynomial, CubicInterpolatingPolynomialFromValuesAndOneGradient) {
// p(x) = x^3 + 2x^2 + 3x + 2
- Vector true_polynomial(4);
- true_polynomial << 1.0, 2.0, 3.0, 2.0;
- Vector true_gradient_polynomial = DifferentiatePolynomial(true_polynomial);
+ Vector true_polynomial(4);
+ true_polynomial << 1.0, 2.0, 3.0, 2.0;
+ Vector true_gradient_polynomial = DifferentiatePolynomial(true_polynomial);
- vector<FunctionSample> samples;
+ vector<FunctionSample> samples;
{
FunctionSample sample;
sample.x = 1.0;
@@ -480,11 +480,11 @@
TEST(Polynomial, CubicInterpolatingPolynomialFromValuesAndGradients) {
// p(x) = x^3 + 2x^2 + 3x + 2
- Vector true_polynomial(4);
- true_polynomial << 1.0, 2.0, 3.0, 2.0;
- Vector true_gradient_polynomial = DifferentiatePolynomial(true_polynomial);
+ Vector true_polynomial(4);
+ true_polynomial << 1.0, 2.0, 3.0, 2.0;
+ Vector true_gradient_polynomial = DifferentiatePolynomial(true_polynomial);
- vector<FunctionSample> samples;
+ vector<FunctionSample> samples;
{
FunctionSample sample;
sample.x = -3.0;