commit | 1fd0be916dd4ff4241bd52264b9e9170bc7e4339 | [log] [tgz] |
---|---|---|
author | Alex Stewart <alexs.mac@gmail.com> | Mon Sep 28 18:54:33 2020 +0100 |
committer | Alex Stewart <alexs.mac@gmail.com> | Mon Sep 28 18:54:33 2020 +0100 |
tree | 6d106d1db09ba3caabcedf638dba2b521596fb3b | |
parent | 137bbe845577929a87f8eef979196df6a8b30ee4 [diff] [blame] |
Fix default initialisation of IterationCallback::cost Change-Id: I9f529093fc09424c90dbff8e9648b90b16990623
diff --git a/include/ceres/iteration_callback.h b/include/ceres/iteration_callback.h index 0a743ec..4507fdf 100644 --- a/include/ceres/iteration_callback.h +++ b/include/ceres/iteration_callback.h
@@ -73,7 +73,7 @@ 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.