Add Problem::HasParameterization

This will help the transition from LocalParameterization to Manifolds,
since most uses of Problem::GetParameterization is to just check
whether a parameter block has a local parameterization associated
with it or not.

Change-Id: Ib3539f377eaed853d7542c9844ec1487aa0fb4d6
This commit is contained in:
Sameer Agarwal
2022-01-11 21:05:56 -08:00
parent 7e2f9d9d41
commit c0cb42e5f9
5 changed files with 35 additions and 0 deletions
+1
View File
@@ -110,6 +110,7 @@ class CERES_EXPORT_INTERNAL ProblemImpl {
void SetParameterization(double* values,
LocalParameterization* local_parameterization);
const LocalParameterization* GetParameterization(const double* values) const;
bool HasParameterization(const double* values) const;
void SetParameterLowerBound(double* values, int index, double lower_bound);
void SetParameterUpperBound(double* values, int index, double upper_bound);