Add an example for EvaluationCallback

Change-Id: Ia488f8b181118c8d07861149c4bd52f7217336ce
This commit is contained in:
Sameer Agarwal
2023-09-27 15:42:16 -07:00
parent 0fc3fd4fce
commit 4588b0fbbf
4 changed files with 266 additions and 3 deletions
+4 -1
View File
@@ -2478,7 +2478,10 @@ be constructed as
to use a global shared variable (discouraged; bug-prone). As far
as Ceres is concerned, it is evaluating cost functions like any
other; it just so happens that behind the scenes the cost functions
reuse pre-computed data to execute faster.
reuse pre-computed data to execute faster. See
`examples/evaluation_callback_example.cc
<https://ceres-solver.googlesource.com/ceres-solver/+/master/examples/evaluation_callback_example.cc>`_
for an example.
See ``evaluation_callback_test.cc`` for code that explicitly
verifies the preconditions between