Searched refs:cost_function (Results 1 - 25 of 33) sorted by relevance

12

/external/ceres-solver/internal/ceres/
H A Dnumeric_diff_functor_test.cc52 internal::scoped_ptr<CostFunction> cost_function; local
55 cost_function.reset(
59 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
61 cost_function.reset(
64 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
71 internal::scoped_ptr<CostFunction> cost_function; local
74 cost_function.reset(
78 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD);
80 cost_function.reset(
83 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWAR
90 internal::scoped_ptr<CostFunction> cost_function; local
109 internal::scoped_ptr<CostFunction> cost_function; local
[all...]
H A Dnumeric_diff_cost_function_test.cc49 internal::scoped_ptr<CostFunction> cost_function; local
50 cost_function.reset(
58 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
62 internal::scoped_ptr<CostFunction> cost_function; local
63 cost_function.reset(
71 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD);
75 internal::scoped_ptr<CostFunction> cost_function; local
76 cost_function.reset(
84 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL);
88 internal::scoped_ptr<CostFunction> cost_function; local
101 internal::scoped_ptr<CostFunction> cost_function; local
114 internal::scoped_ptr<CostFunction> cost_function; local
127 internal::scoped_ptr<CostFunction> cost_function; local
140 internal::scoped_ptr<CostFunction> cost_function; local
169 scoped_ptr<CostFunction> cost_function; local
188 internal::scoped_ptr<CostFunction> cost_function; local
[all...]
H A Dautodiff_cost_function_test.cc36 #include "ceres/cost_function.h"
55 CostFunction* cost_function = local
75 cost_function->Evaluate(parameters, &residuals, NULL);
77 cost_function->Evaluate(parameters, &residuals, jacobians);
90 delete cost_function;
112 CostFunction* cost_function = local
127 cost_function->Evaluate(parameters, &residuals, NULL);
130 cost_function->Evaluate(parameters, &residuals, jacobians);
142 delete cost_function;
H A Dproblem.cc46 CostFunction* cost_function,
49 return problem_impl_->AddResidualBlock(cost_function,
55 CostFunction* cost_function,
58 return problem_impl_->AddResidualBlock(cost_function,
64 CostFunction* cost_function,
67 return problem_impl_->AddResidualBlock(cost_function,
73 CostFunction* cost_function,
76 return problem_impl_->AddResidualBlock(cost_function,
82 CostFunction* cost_function,
85 return problem_impl_->AddResidualBlock(cost_function,
45 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, const vector<double*>& parameter_blocks) argument
54 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0) argument
63 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1) argument
72 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2) argument
81 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3) argument
90 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4) argument
99 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5) argument
108 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5, double* x6) argument
118 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5, double* x6, double* x7) argument
128 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5, double* x6, double* x7, double* x8) argument
138 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5, double* x6, double* x7, double* x8, double* x9) argument
[all...]
H A 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...]
H A Dgradient_checking_cost_function.h36 #include "ceres/cost_function.h"
43 // Creates a CostFunction that checks the jacobians that cost_function computes
61 const CostFunction* cost_function,
H A Ddynamic_numeric_diff_cost_function_test.cc77 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(&parameter_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
333 DynamicMyThreeParameterCostFunction * cost_function = local
[all...]
H A Dnumeric_diff_test_utils.h34 #include "ceres/cost_function.h"
48 const CostFunction& cost_function,
73 const CostFunction& cost_function,
H A Dresidual_block.h40 #include "ceres/cost_function.h"
58 // --- loss_function( || cost_function(block1, block2, ...) ||^2 ),
72 ResidualBlock(const CostFunction* cost_function,
106 const CostFunction* cost_function() const { return cost_function_; } function in class:ceres::internal::ResidualBlock
H A Ddynamic_autodiff_cost_function_test.cc77 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(&parameter_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
332 DynamicMyThreeParameterCostFunction * cost_function = local
569 DynamicMySixParameterCostFunction * cost_function = local
[all...]
H A Dc_api.cc40 #include "ceres/cost_function.h"
68 CallbackCostFunction(ceres_cost_function_t cost_function, argument
73 : cost_function_(cost_function),
143 ceres_cost_function_t cost_function,
154 new CallbackCostFunction(cost_function,
141 ceres_problem_add_residual_block( ceres_problem_t* problem, ceres_cost_function_t cost_function, void* cost_function_data, ceres_loss_function_t loss_function, void* loss_function_data, int num_residuals, int num_parameter_blocks, int* parameter_block_sizes, double** parameters) argument
H A Dnumeric_diff_test_utils.cc35 #include "ceres/cost_function.h"
58 const CostFunction& cost_function,
70 ASSERT_TRUE(cost_function.Evaluate(&parameters[0],
103 const CostFunction& cost_function,
140 ASSERT_TRUE(cost_function.Evaluate(&parameters[0],
57 ExpectCostFunctionEvaluationIsNearlyCorrect( const CostFunction& cost_function, NumericDiffMethod method) const argument
102 ExpectCostFunctionEvaluationIsNearlyCorrect( const CostFunction& cost_function, NumericDiffMethod method) const argument
H A Dresidual_block_test.cc93 TernaryCostFunction cost_function(3, 2, 3, 4);
96 ResidualBlock residual_block(&cost_function, NULL, parameters, -1);
99 EXPECT_EQ(&cost_function, residual_block.cost_function());
232 LocallyParameterizedCostFunction cost_function; local
235 ResidualBlock residual_block(&cost_function, NULL, parameters, -1);
238 EXPECT_EQ(&cost_function, residual_block.cost_function());
H A Dresidual_block_utils_test.cc37 #include "ceres/cost_function.h"
46 void CheckEvaluation(const CostFunction& cost_function, bool is_good) { argument
52 ResidualBlock residual_block(&cost_function,
H A Dsolver_impl_test.cc72 scoped_ptr<CostFunction> cost_function(
80 problem.AddResidualBlock(cost_function.get(), NULL, &x, &y, &z, &w);
H A Dproblem_impl.cc43 #include "ceres/cost_function.h"
183 residual_block->cost_function() != NULL) {
185 const_cast<CostFunction*>(residual_block->cost_function()));
239 CostFunction* cost_function,
242 CHECK_NOTNULL(cost_function);
244 cost_function->parameter_block_sizes().size());
248 cost_function->parameter_block_sizes();
283 // cost_function.
285 CHECK_EQ(cost_function->parameter_block_sizes()[i],
288 << " of size " << cost_function
238 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, const vector<double*>& parameter_blocks) argument
318 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0) argument
327 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1) argument
337 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2) argument
348 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3) argument
360 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4) argument
373 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5) argument
387 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5, double* x6) argument
403 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5, double* x6, double* x7) argument
420 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5, double* x6, double* x7, double* x8) argument
438 AddResidualBlock( CostFunction* cost_function, LossFunction* loss_function, double* x0, double* x1, double* x2, double* x3, double* x4, double* x5, double* x6, double* x7, double* x8, double* x9) argument
[all...]
H A Dcost_function_to_functor_test.cc40 void ExpectCostFunctionsAreEqual(const CostFunction& cost_function, argument
42 EXPECT_EQ(cost_function.num_residuals(),
44 const int num_residuals = cost_function.num_residuals();
46 cost_function.parameter_block_sizes();
86 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.get(),
96 EXPECT_TRUE(cost_function.Evaluate(parameter_blocks.get(),
246 scoped_ptr<CostFunction> cost_function( \
258 ExpectCostFunctionsAreEqual(*cost_function, *actual_cost_function); \
H A Dresidual_block.cc40 #include "ceres/cost_function.h"
52 ResidualBlock::ResidualBlock(const CostFunction* cost_function, argument
56 : cost_function_(cost_function),
60 cost_function->parameter_block_sizes().size()]),
/external/ceres-solver/include/ceres/
H A Dproblem.h120 // Please see cost_function.h for details of the CostFunction object.
192 // cost_function and loss_function pointers. These objects remain
197 // Note: Even though the Problem takes ownership of cost_function
200 // delete on each cost_function or loss_function pointer only once,
214 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,
[all...]
H A Dc_api.h127 ceres_cost_function_t cost_function,
/external/ceres-solver/examples/
H A Dhelloworld.cc69 CostFunction* cost_function = local
71 problem.AddResidualBlock(cost_function, NULL, &x);
H A Dhelloworld_analytic_diff.cc93 CostFunction* cost_function = new QuadraticCostFunction; local
94 problem.AddResidualBlock(cost_function, NULL, &x);
H A Dhelloworld_numeric_diff.cc65 CostFunction* cost_function = local
67 problem.AddResidualBlock(cost_function, NULL, &x);
H A Ddenoising.cc97 ceres::CostFunction* cost_function = local
100 problem->AddResidualBlock(cost_function,
108 std::vector<ceres::CostFunction*> cost_function(foe.NumFilters());
111 cost_function[alpha_index] = foe.NewCostFunction(alpha_index);
129 problem->AddResidualBlock(cost_function[alpha_index],
H A Drobot_pose_mle.cc217 RangeCostFunction* cost_function = new RangeCostFunction(constraint); local
222 cost_function->AddParameterBlock(1);
224 cost_function->SetNumResiduals(1);
225 return (cost_function);

Completed in 222 milliseconds

12