commit | dffd8cd71b6e01a1c919202682fe80630cf2ad34 | [log] [tgz] |
---|---|---|
author | Sameer Agarwal <sameeragarwal@google.com> | Mon Sep 25 05:44:30 2023 -0700 |
committer | Sameer Agarwal <sameeragarwal@google.com> | Mon Sep 25 05:44:37 2023 -0700 |
tree | aeb4f5e6b4e74bb463c926567fa24de2f8459155 | |
parent | bea24770109f87160b96e1583199d82100c3ed6c [diff] |
Add an accessor for the CostFunctor in DynamicAutoDiffCostFunction https://github.com/ceres-solver/ceres-solver/issues/962 Change-Id: I50c327eb7ac09a894582ee3fb3311825607640c0
diff --git a/include/ceres/dynamic_autodiff_cost_function.h b/include/ceres/dynamic_autodiff_cost_function.h index ce0f802..e47f32f 100644 --- a/include/ceres/dynamic_autodiff_cost_function.h +++ b/include/ceres/dynamic_autodiff_cost_function.h
@@ -264,6 +264,8 @@ return true; } + const CostFunctor& functor() const { return *functor_; } + private: std::unique_ptr<CostFunctor> functor_; Ownership ownership_;