MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / makeAutoDiffCostFunction

Method makeAutoDiffCostFunction

include/FactorGraph.h:301–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 /** helper function to create variadic templated cost functions */
300 template<int NoiseModelOutputDim, typename FactorClass, int... FactorStateDims, int... ErrorModelStateDims>
301 auto makeAutoDiffCostFunction(FactorClass *Factor, std::integer_sequence<int, FactorStateDims...>, std::integer_sequence<int, ErrorModelStateDims...>)
302 {
303 return new ceres::AutoDiffCostFunction<FactorClass, NoiseModelOutputDim, FactorStateDims... , ErrorModelStateDims...> (Factor);
304 }
305
306 /** add and remove factors */
307 template <typename ErrorType, typename FactorClass, typename... FactorParameters>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected