Add const to GetCovarianceMatrix*

This CL adds const to the functions GetCovarianceMatrix and
GetCovarianceMatrixInTangentSpace.

Change-Id: Ibe2cafebede47977a9aabcac8d245f30af184fd1
This commit is contained in:
Johannes Beck
2020-03-24 08:02:21 +01:00
committed by Sameer Agarwal
parent 6bde61d6be
commit 84fdac38e0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -426,7 +426,7 @@ class CERES_EXPORT Covariance {
// the sizes of the individual parameter blocks. The covariance
// matrix will be a row-major matrix.
bool GetCovarianceMatrix(const std::vector<const double*>& parameter_blocks,
double* covariance_matrix);
double* covariance_matrix) const;
// Return the covariance matrix corresponding to parameter_blocks
// in the tangent space if a local parameterization is associated
@@ -445,7 +445,7 @@ class CERES_EXPORT Covariance {
// blocks. The covariance matrix will be a row-major matrix.
bool GetCovarianceMatrixInTangentSpace(
const std::vector<const double*>& parameter_blocks,
double* covariance_matrix);
double* covariance_matrix) const;
private:
std::unique_ptr<internal::CovarianceImpl> impl_;