| 43 | |
| 44 | template <typename CostFunctor, int kNumResiduals, int... kParameterDims> |
| 45 | ceres::CostFunction* CreateAutoDiffCostFunction( |
| 46 | CostFunctor* functor, std::integer_sequence<int, kParameterDims...>) { |
| 47 | return new ceres::AutoDiffCostFunction<CostFunctor, |
| 48 | kNumResiduals, |
| 49 | kParameterDims...>(functor); |
| 50 | } |
| 51 | |
| 52 | template <typename CostFunctor> |
| 53 | ceres::CostFunction* CreateAutoDiffCostFunction(CostFunctor* functor) { |