Home
last modified time | relevance | path

Searched refs:cost_function (Results 1 – 25 of 35) sorted by relevance

12

/external/ceres-solver/internal/ceres/
Dnumeric_diff_cost_function_test.cc49 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
50 cost_function.reset( in TEST()
58 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
62 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
63 cost_function.reset( in TEST()
71 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
75 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
76 cost_function.reset( in TEST()
84 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
88 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
[all …]
Dnumeric_diff_functor_test.cc52 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
55 cost_function.reset( in TEST()
59 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
61 cost_function.reset( in TEST()
64 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); in TEST()
71 internal::scoped_ptr<CostFunction> cost_function; in TEST() local
74 cost_function.reset( in TEST()
78 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
80 cost_function.reset( in TEST()
83 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); in TEST()
[all …]
Dproblem.cc46 CostFunction* cost_function, in AddResidualBlock() argument
49 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
55 CostFunction* cost_function, in AddResidualBlock() argument
58 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
64 CostFunction* cost_function, in AddResidualBlock() argument
67 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
73 CostFunction* cost_function, in AddResidualBlock() argument
76 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
82 CostFunction* cost_function, in AddResidualBlock() argument
85 return problem_impl_->AddResidualBlock(cost_function, in AddResidualBlock()
[all …]
Ddynamic_numeric_diff_cost_function_test.cc77 DynamicNumericDiffCostFunction<MyCostFunctor> cost_function( in TEST() local
79 cost_function.AddParameterBlock(param_block_0.size()); in TEST()
80 cost_function.AddParameterBlock(param_block_1.size()); in TEST()
81 cost_function.SetNumResiduals(21); in TEST()
88 EXPECT_TRUE(cost_function.Evaluate(&parameter_blocks[0], in TEST()
106 DynamicNumericDiffCostFunction<MyCostFunctor> cost_function( in TEST() local
108 cost_function.AddParameterBlock(param_block_0.size()); in TEST()
109 cost_function.AddParameterBlock(param_block_1.size()); in TEST()
110 cost_function.SetNumResiduals(21); in TEST()
129 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(), in TEST()
[all …]
Dproblem_impl.h75 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
78 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
81 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
84 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
87 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
91 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
95 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
99 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
104 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
109 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
[all …]
Ddynamic_autodiff_cost_function_test.cc77 DynamicAutoDiffCostFunction<MyCostFunctor, 3> cost_function( in TEST() local
79 cost_function.AddParameterBlock(param_block_0.size()); in TEST()
80 cost_function.AddParameterBlock(param_block_1.size()); in TEST()
81 cost_function.SetNumResiduals(21); in TEST()
88 EXPECT_TRUE(cost_function.Evaluate(&parameter_blocks[0], in TEST()
105 DynamicAutoDiffCostFunction<MyCostFunctor, 3> cost_function( in TEST() local
107 cost_function.AddParameterBlock(param_block_0.size()); in TEST()
108 cost_function.AddParameterBlock(param_block_1.size()); in TEST()
109 cost_function.SetNumResiduals(21); in TEST()
128 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.data(), in TEST()
[all …]
Dautodiff_cost_function_test.cc55 CostFunction* cost_function = in TEST() local
75 cost_function->Evaluate(parameters, &residuals, NULL); in TEST()
77 cost_function->Evaluate(parameters, &residuals, jacobians); in TEST()
90 delete cost_function; in TEST()
112 CostFunction* cost_function = in TEST() local
127 cost_function->Evaluate(parameters, &residuals, NULL); in TEST()
130 cost_function->Evaluate(parameters, &residuals, jacobians); in TEST()
142 delete cost_function; in TEST()
Dproblem_impl.cc183 residual_block->cost_function() != NULL) { in DeleteBlock()
185 const_cast<CostFunction*>(residual_block->cost_function())); in DeleteBlock()
239 CostFunction* cost_function, in AddResidualBlock() argument
242 CHECK_NOTNULL(cost_function); in AddResidualBlock()
244 cost_function->parameter_block_sizes().size()); in AddResidualBlock()
248 cost_function->parameter_block_sizes(); in AddResidualBlock()
285 CHECK_EQ(cost_function->parameter_block_sizes()[i], in AddResidualBlock()
288 << " of size " << cost_function->parameter_block_sizes()[i] in AddResidualBlock()
295 new ResidualBlock(cost_function, in AddResidualBlock()
319 CostFunction* cost_function, in AddResidualBlock() argument
[all …]
Dresidual_block_test.cc93 TernaryCostFunction cost_function(3, 2, 3, 4); in TEST() local
96 ResidualBlock residual_block(&cost_function, NULL, parameters, -1); in TEST()
99 EXPECT_EQ(&cost_function, residual_block.cost_function()); in TEST()
232 LocallyParameterizedCostFunction cost_function; in TEST() local
235 ResidualBlock residual_block(&cost_function, NULL, parameters, -1); in TEST()
238 EXPECT_EQ(&cost_function, residual_block.cost_function()); in TEST()
Dcost_function_to_functor_test.cc40 void ExpectCostFunctionsAreEqual(const CostFunction& cost_function, in ExpectCostFunctionsAreEqual() argument
42 EXPECT_EQ(cost_function.num_residuals(), in ExpectCostFunctionsAreEqual()
44 const int num_residuals = cost_function.num_residuals(); in ExpectCostFunctionsAreEqual()
46 cost_function.parameter_block_sizes(); in ExpectCostFunctionsAreEqual()
86 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.get(), in ExpectCostFunctionsAreEqual()
96 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.get(), in ExpectCostFunctionsAreEqual()
246 scoped_ptr<CostFunction> cost_function( \
258 ExpectCostFunctionsAreEqual(*cost_function, *actual_cost_function); \
Dnumeric_diff_test_utils.cc58 const CostFunction& cost_function, in ExpectCostFunctionEvaluationIsNearlyCorrect() argument
70 ASSERT_TRUE(cost_function.Evaluate(&parameters[0], in ExpectCostFunctionEvaluationIsNearlyCorrect()
103 const CostFunction& cost_function, in ExpectCostFunctionEvaluationIsNearlyCorrect() argument
140 ASSERT_TRUE(cost_function.Evaluate(&parameters[0], in ExpectCostFunctionEvaluationIsNearlyCorrect()
Dc_api.cc68 CallbackCostFunction(ceres_cost_function_t cost_function, in CallbackCostFunction() argument
73 : cost_function_(cost_function), in CallbackCostFunction()
143 ceres_cost_function_t cost_function, in ceres_problem_add_residual_block() argument
154 new CallbackCostFunction(cost_function, in ceres_problem_add_residual_block()
Dnumeric_diff_test_utils.h48 const CostFunction& cost_function,
73 const CostFunction& cost_function,
Dresidual_block.h72 ResidualBlock(const CostFunction* cost_function,
106 const CostFunction* cost_function() const { return cost_function_; } in cost_function() function
Dresidual_block.cc52 ResidualBlock::ResidualBlock(const CostFunction* cost_function, in ResidualBlock() argument
56 : cost_function_(cost_function), in ResidualBlock()
60 cost_function->parameter_block_sizes().size()]), in ResidualBlock()
Dsolver_impl_test.cc72 scoped_ptr<CostFunction> cost_function( in TEST() local
80 problem.AddResidualBlock(cost_function.get(), NULL, &x, &y, &z, &w); in TEST()
Dresidual_block_utils_test.cc46 void CheckEvaluation(const CostFunction& cost_function, bool is_good) { in CheckEvaluation() argument
52 ResidualBlock residual_block(&cost_function, in CheckEvaluation()
/external/ceres-solver/include/ceres/
Dproblem.h214 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
221 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
224 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
227 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
230 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
234 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
238 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
242 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
247 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
252 ResidualBlockId AddResidualBlock(CostFunction* cost_function,
[all …]
/external/ceres-solver/examples/
Ddenoising.cc97 ceres::CostFunction* cost_function = in CreateProblem() local
100 problem->AddResidualBlock(cost_function, in CreateProblem()
108 std::vector<ceres::CostFunction*> cost_function(foe.NumFilters()); in CreateProblem() local
111 cost_function[alpha_index] = foe.NewCostFunction(alpha_index); in CreateProblem()
129 problem->AddResidualBlock(cost_function[alpha_index], in CreateProblem()
Drobot_pose_mle.cc217 RangeCostFunction* cost_function = new RangeCostFunction(constraint); in Create() local
222 cost_function->AddParameterBlock(1); in Create()
224 cost_function->SetNumResiduals(1); in Create()
225 return (cost_function); in Create()
Dhelloworld_numeric_diff.cc65 CostFunction* cost_function = in main() local
67 problem.AddResidualBlock(cost_function, NULL, &x); in main()
Dhelloworld.cc69 CostFunction* cost_function = in main() local
71 problem.AddResidualBlock(cost_function, NULL, &x); in main()
Dhelloworld_analytic_diff.cc93 CostFunction* cost_function = new QuadraticCostFunction; in main() local
94 problem.AddResidualBlock(cost_function, NULL, &x); in main()
Dbundle_adjuster.cc262 CostFunction* cost_function; in BuildProblem() local
265 cost_function = in BuildProblem()
289 problem->AddResidualBlock(cost_function, in BuildProblem()
295 problem->AddResidualBlock(cost_function, loss_function, camera, point); in BuildProblem()
Drobust_curve_fitting.cc147 CostFunction* cost_function = in main() local
150 problem.AddResidualBlock(cost_function, NULL, &m, &c); in main()

12