mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Initialize integer variables with integer instead of double
Change-Id: I652aca4ceb3129706a5d5e38afe9f16b61200a5b
This commit is contained in:
committed by
Sameer Agarwal
parent
8c36bcc81f
commit
072c8f070e
@@ -792,22 +792,22 @@ class CERES_EXPORT Solver {
|
||||
// accepted. Unless use_non_monotonic_steps is true this is also
|
||||
// the number of steps in which the objective function value/cost
|
||||
// went down.
|
||||
int num_successful_steps = -1.0;
|
||||
int num_successful_steps = -1;
|
||||
|
||||
// Number of minimizer iterations in which the step was rejected
|
||||
// either because it did not reduce the cost enough or the step
|
||||
// was not numerically valid.
|
||||
int num_unsuccessful_steps = -1.0;
|
||||
int num_unsuccessful_steps = -1;
|
||||
|
||||
// Number of times inner iterations were performed.
|
||||
int num_inner_iteration_steps = -1.0;
|
||||
int num_inner_iteration_steps = -1;
|
||||
|
||||
// Total number of iterations inside the line search algorithm
|
||||
// across all invocations. We call these iterations "steps" to
|
||||
// distinguish them from the outer iterations of the line search
|
||||
// and trust region minimizer algorithms which call the line
|
||||
// search algorithm as a subroutine.
|
||||
int num_line_search_steps = -1.0;
|
||||
int num_line_search_steps = -1;
|
||||
|
||||
// All times reported below are wall times.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user