Deprecate LocalParameterizations

Add [[deprecate]] notices to everything LocalParameterization
related.

Make sure that Ceres can be compiled without triggering
deprecation warnings.

Update the documentation:

a. Add deprecation notices.
b. Document interaction between LocalParameterization and Manifold
   coexisting in the Problem.
c. Add documentation for Manifold(s)

Change-Id: Ie4ad48963c83fded86e533c8c60561af402fbaff
This commit is contained in:
Sameer Agarwal
2022-01-24 11:39:21 -08:00
parent fdfa5184a5
commit 0141ca090c
22 changed files with 1159 additions and 204 deletions
+8 -4
View File
@@ -80,10 +80,14 @@ class CERES_EXPORT GradientChecker {
// NOTE: This constructor is deprecated and will be removed in the next public
// release of Ceres Solver. Please transition to using the Manifold based
// version.
GradientChecker(
const CostFunction* function,
const std::vector<const LocalParameterization*>* local_parameterizations,
const NumericDiffOptions& options);
[[deprecated(
"Local Parameterizations are deprecated. Use the constructor that uses "
"Manifolds instead.")]] GradientChecker(const CostFunction* function,
const std::vector<
const LocalParameterization*>*
local_parameterizations,
const NumericDiffOptions&
options);
// This will not take ownership of the cost function or manifolds.
//