mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Update GradientChecker docs
* Use GradientChecker::ProbeResults instead of GradientCheckResults * Add missing parenthesis in if statement Change-Id: I900608eb806753ec8f42c09d395fa3b93f012e76
This commit is contained in:
@@ -915,8 +915,8 @@ Numeric Differentiation & Manifolds
|
||||
GradientChecker gradient_checker(my_cost_function,
|
||||
manifolds,
|
||||
numeric_diff_options);
|
||||
GradientCheckResults results;
|
||||
if (!gradient_checker.Probe(parameter_blocks.data(), 1e-9, &results) {
|
||||
GradientChecker::ProbeResults results;
|
||||
if (!gradient_checker.Probe(parameter_blocks.data(), 1e-9, &results)) {
|
||||
LOG(ERROR) << "An error has occurred:\n" << results.error_log;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user