MCPcopy Create free account
hub / github.com/colmap/colmap / CreateAutoDiffCostFunction

Function CreateAutoDiffCostFunction

src/colmap/estimators/cost_functions/utils.h:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

CreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected