Update GradientChecker docs

* Use GradientChecker::ProbeResults instead of GradientCheckResults
* Add missing parenthesis in if statement

Change-Id: I900608eb806753ec8f42c09d395fa3b93f012e76
This commit is contained in:
reprojection.calibration
2026-06-23 11:40:29 +02:00
parent 8a566fcc15
commit bac1127f9e
+2 -2
View File
@@ -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;
}