Lines Matching refs:cost_function
77 DynamicAutoDiffCostFunction<MyCostFunctor, 3> 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],
105 DynamicAutoDiffCostFunction<MyCostFunctor, 3> cost_function(
107 cost_function.AddParameterBlock(param_block_0.size());
108 cost_function.AddParameterBlock(param_block_1.size());
109 cost_function.SetNumResiduals(21);
128 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(),
172 DynamicAutoDiffCostFunction<MyCostFunctor, 3> cost_function(
174 cost_function.AddParameterBlock(param_block_0.size());
175 cost_function.AddParameterBlock(param_block_1.size());
176 cost_function.SetNumResiduals(21);
195 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(),
222 DynamicAutoDiffCostFunction<MyCostFunctor, 3> cost_function(
224 cost_function.AddParameterBlock(param_block_0.size());
225 cost_function.AddParameterBlock(param_block_1.size());
226 cost_function.SetNumResiduals(21);
245 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(),
332 DynamicMyThreeParameterCostFunction * cost_function =
335 cost_function->AddParameterBlock(1);
336 cost_function->AddParameterBlock(2);
337 cost_function->AddParameterBlock(3);
338 cost_function->SetNumResiduals(7);
340 cost_function_.reset(cost_function);
569 DynamicMySixParameterCostFunction * cost_function =
573 cost_function->AddParameterBlock(1);
575 cost_function->SetNumResiduals(7);
577 cost_function_.reset(cost_function);