mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user