/external/ceres-solver/internal/ceres/ |
D | numeric_diff_cost_function_test.cc | 49 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 …]
|
D | numeric_diff_functor_test.cc | 52 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 …]
|
D | problem.cc | 46 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 …]
|
D | dynamic_numeric_diff_cost_function_test.cc | 77 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(¶meter_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 …]
|
D | problem_impl.h | 75 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 …]
|
D | dynamic_autodiff_cost_function_test.cc | 77 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(¶meter_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 …]
|
D | autodiff_cost_function_test.cc | 55 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()
|
D | problem_impl.cc | 183 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 …]
|
D | residual_block_test.cc | 93 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()
|
D | cost_function_to_functor_test.cc | 40 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); \
|
D | numeric_diff_test_utils.cc | 58 const CostFunction& cost_function, in ExpectCostFunctionEvaluationIsNearlyCorrect() argument 70 ASSERT_TRUE(cost_function.Evaluate(¶meters[0], in ExpectCostFunctionEvaluationIsNearlyCorrect() 103 const CostFunction& cost_function, in ExpectCostFunctionEvaluationIsNearlyCorrect() argument 140 ASSERT_TRUE(cost_function.Evaluate(¶meters[0], in ExpectCostFunctionEvaluationIsNearlyCorrect()
|
D | c_api.cc | 68 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()
|
D | numeric_diff_test_utils.h | 48 const CostFunction& cost_function, 73 const CostFunction& cost_function,
|
D | residual_block.h | 72 ResidualBlock(const CostFunction* cost_function, 106 const CostFunction* cost_function() const { return cost_function_; } in cost_function() function
|
D | residual_block.cc | 52 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()
|
D | solver_impl_test.cc | 72 scoped_ptr<CostFunction> cost_function( in TEST() local 80 problem.AddResidualBlock(cost_function.get(), NULL, &x, &y, &z, &w); in TEST()
|
D | residual_block_utils_test.cc | 46 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/ |
D | problem.h | 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, 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/ |
D | denoising.cc | 97 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()
|
D | robot_pose_mle.cc | 217 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()
|
D | helloworld_numeric_diff.cc | 65 CostFunction* cost_function = in main() local 67 problem.AddResidualBlock(cost_function, NULL, &x); in main()
|
D | helloworld.cc | 69 CostFunction* cost_function = in main() local 71 problem.AddResidualBlock(cost_function, NULL, &x); in main()
|
D | helloworld_analytic_diff.cc | 93 CostFunction* cost_function = new QuadraticCostFunction; in main() local 94 problem.AddResidualBlock(cost_function, NULL, &x); in main()
|
D | bundle_adjuster.cc | 262 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()
|
D | robust_curve_fitting.cc | 147 CostFunction* cost_function = in main() local 150 problem.AddResidualBlock(cost_function, NULL, &m, &c); in main()
|