mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Add destructor to Covariance.
This allows CovarianceImpl to be forward declared without scoped_ptr freaking out. Thanks to Nima Keivan for reporting this. Change-Id: Icd5aa766b3aab70246055225231a4b971c6b7b90
This commit is contained in:
@@ -234,6 +234,7 @@ class Covariance {
|
||||
};
|
||||
|
||||
explicit Covariance(const Options& options);
|
||||
~Covariance();
|
||||
|
||||
// Compute a part of the covariance matrix.
|
||||
//
|
||||
|
||||
@@ -42,6 +42,9 @@ Covariance::Covariance(const Covariance::Options& options) {
|
||||
impl_.reset(new internal::CovarianceImpl(options));
|
||||
}
|
||||
|
||||
Covariance::~Covariance() {
|
||||
}
|
||||
|
||||
bool Covariance::Compute(
|
||||
const vector<pair<const double*, const double*> >& covariance_blocks,
|
||||
Problem* problem) {
|
||||
|
||||
Reference in New Issue
Block a user