Lines Matching refs:cost_function
77 DynamicNumericDiffCostFunction<MyCostFunctor> cost_function(
79 cost_function.AddParameterBlock(param_block_0.size());
80 cost_function.AddParameterBlock(param_block_1.size());
81 cost_function.SetNumResiduals(21);
88 EXPECT_TRUE(cost_function.Evaluate(¶meter_blocks[0],
106 DynamicNumericDiffCostFunction<MyCostFunctor> cost_function(
108 cost_function.AddParameterBlock(param_block_0.size());
109 cost_function.AddParameterBlock(param_block_1.size());
110 cost_function.SetNumResiduals(21);
129 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(),
173 DynamicNumericDiffCostFunction<MyCostFunctor> cost_function(
175 cost_function.AddParameterBlock(param_block_0.size());
176 cost_function.AddParameterBlock(param_block_1.size());
177 cost_function.SetNumResiduals(21);
196 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(),
223 DynamicNumericDiffCostFunction<MyCostFunctor> cost_function(
225 cost_function.AddParameterBlock(param_block_0.size());
226 cost_function.AddParameterBlock(param_block_1.size());
227 cost_function.SetNumResiduals(21);
246 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(),
333 DynamicMyThreeParameterCostFunction * cost_function =
336 cost_function->AddParameterBlock(1);
337 cost_function->AddParameterBlock(2);
338 cost_function->AddParameterBlock(3);
339 cost_function->SetNumResiduals(7);
341 cost_function_.reset(cost_function);