Add Problem::EvaluateResidualBlock.

This method gives the user the ability to evaluate a given residual
block.

A couple of minor cleanups.

Problem::problem_impl_ -> Problem::impl_
NULL -> nullptr

https://github.com/ceres-solver/ceres-solver/issues/417

Change-Id: I6dd94762c475fa264c387b8c93d516f6e06fe832
This commit is contained in:
Sameer Agarwal
2019-04-27 16:26:10 -07:00
parent 54ba6c27b5
commit 1b852c57e0
10 changed files with 682 additions and 92 deletions
+2 -2
View File
@@ -491,7 +491,7 @@ void Solver::Solve(const Solver::Options& options,
return;
}
ProblemImpl* problem_impl = problem->problem_impl_.get();
ProblemImpl* problem_impl = problem->impl_.get();
Program* program = problem_impl->mutable_program();
PreSolveSummarize(options, problem_impl, summary);
@@ -566,7 +566,7 @@ void Solver::Solve(const Solver::Options& options,
}
const double postprocessor_start_time = WallTimeInSeconds();
problem_impl = problem->problem_impl_.get();
problem_impl = problem->impl_.get();
program = problem_impl->mutable_program();
// On exit, ensure that the parameter blocks again point at the user
// provided values and the parameter blocks are numbered according