mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Add an accessor for the CostFunctor in DynamicAutoDiffCostFunction
https://github.com/ceres-solver/ceres-solver/issues/962 Change-Id: I50c327eb7ac09a894582ee3fb3311825607640c0
This commit is contained in:
@@ -264,6 +264,8 @@ class DynamicAutoDiffCostFunction final : public DynamicCostFunction {
|
||||
return true;
|
||||
}
|
||||
|
||||
const CostFunctor& functor() const { return *functor_; }
|
||||
|
||||
private:
|
||||
std::unique_ptr<CostFunctor> functor_;
|
||||
Ownership ownership_;
|
||||
|
||||
Reference in New Issue
Block a user