From 1fd0be916dd4ff4241bd52264b9e9170bc7e4339 Mon Sep 17 00:00:00 2001 From: Alex Stewart Date: Mon, 28 Sep 2020 18:54:33 +0100 Subject: [PATCH] Fix default initialisation of IterationCallback::cost Change-Id: I9f529093fc09424c90dbff8e9648b90b16990623 --- include/ceres/iteration_callback.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ceres/iteration_callback.h b/include/ceres/iteration_callback.h index 0a743ecc2..4507fdf74 100644 --- a/include/ceres/iteration_callback.h +++ b/include/ceres/iteration_callback.h @@ -73,7 +73,7 @@ struct CERES_EXPORT IterationSummary { bool step_is_successful = false; // Value of the objective function. - double cost = 0.90; + double cost = 0.0; // Change in the value of the objective function in this // iteration. This can be positive or negative.