Home
last modified time | relevance | path

Searched refs:residual_block (Results 1 – 25 of 26) sorted by relevance

12

/external/ceres-solver/internal/ceres/
Dresidual_block_test.cc96 ResidualBlock residual_block(&cost_function, NULL, parameters, -1); in TEST() local
99 EXPECT_EQ(&cost_function, residual_block.cost_function()); in TEST()
100 EXPECT_EQ(NULL, residual_block.loss_function()); in TEST()
101 EXPECT_EQ(parameters[0], residual_block.parameter_blocks()[0]); in TEST()
102 EXPECT_EQ(parameters[1], residual_block.parameter_blocks()[1]); in TEST()
103 EXPECT_EQ(parameters[2], residual_block.parameter_blocks()[2]); in TEST()
104 EXPECT_EQ(3, residual_block.NumScratchDoublesForEvaluate()); in TEST()
108 residual_block.Evaluate(true, &cost, NULL, NULL, scratch); in TEST()
113 residual_block.Evaluate(true, &cost, residuals, NULL, scratch); in TEST()
137 residual_block.Evaluate(true, &cost, residuals, jacobian_ptrs, scratch); in TEST()
[all …]
Dblock_jacobian_writer.cc68 ResidualBlock* residual_block = residual_blocks[i]; in BuildJacobianLayout() local
69 const int num_residuals = residual_block->NumResiduals(); in BuildJacobianLayout()
70 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in BuildJacobianLayout()
74 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in BuildJacobianLayout()
96 const ResidualBlock* residual_block = residual_blocks[i]; in BuildJacobianLayout() local
97 const int num_residuals = residual_block->NumResiduals(); in BuildJacobianLayout()
98 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in BuildJacobianLayout()
102 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in BuildJacobianLayout()
171 const ResidualBlock* residual_block = residual_blocks[i]; in CreateJacobian() local
174 row->block.size = residual_block->NumResiduals(); in CreateJacobian()
[all …]
Dcompressed_row_jacobian_writer.cc66 const ResidualBlock* residual_block = in GetOrderedParameterBlocks() local
68 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in GetOrderedParameterBlocks()
72 residual_block->parameter_blocks()[j]; in GetOrderedParameterBlocks()
91 ResidualBlock* residual_block = residual_blocks[i]; in CreateJacobian() local
92 const int num_residuals = residual_block->NumResiduals(); in CreateJacobian()
93 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in CreateJacobian()
95 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateJacobian()
119 const ResidualBlock* residual_block = residual_blocks[i]; in CreateJacobian() local
120 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in CreateJacobian()
127 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateJacobian()
[all …]
Dproblem_impl.cc153 void ProblemImpl::InternalRemoveResidualBlock(ResidualBlock* residual_block) { in InternalRemoveResidualBlock() argument
154 CHECK_NOTNULL(residual_block); in InternalRemoveResidualBlock()
161 residual_block->NumParameterBlocks(); in InternalRemoveResidualBlock()
163 residual_block->parameter_blocks()[i] in InternalRemoveResidualBlock()
164 ->RemoveResidualBlock(residual_block); in InternalRemoveResidualBlock()
167 ResidualBlockSet::iterator it = residual_block_set_.find(residual_block); in InternalRemoveResidualBlock()
170 DeleteBlockInVector(program_->mutable_residual_blocks(), residual_block); in InternalRemoveResidualBlock()
178 void ProblemImpl::DeleteBlock(ResidualBlock* residual_block) { in DeleteBlock() argument
183 residual_block->cost_function() != NULL) { in DeleteBlock()
185 const_cast<CostFunction*>(residual_block->cost_function())); in DeleteBlock()
[all …]
Dprogram.cc128 ResidualBlock* residual_block = residual_blocks_[i]; in SetParameterOffsetsAndIndex() local
129 for (int j = 0; j < residual_block->NumParameterBlocks(); ++j) { in SetParameterOffsetsAndIndex()
130 residual_block->parameter_blocks()[j]->set_index(-1); in SetParameterOffsetsAndIndex()
147 const ResidualBlock* residual_block = residual_blocks_[i]; in IsValid() local
148 if (residual_block->index() != i) { in IsValid()
150 << " has incorrect index: " << residual_block->index(); in IsValid()
304 ResidualBlock* residual_block = residual_blocks_[i]; in RemoveFixedBlocks() local
305 int num_parameter_blocks = residual_block->NumParameterBlocks(); in RemoveFixedBlocks()
311 ParameterBlock* parameter_block = residual_block->parameter_blocks()[k]; in RemoveFixedBlocks()
319 residual_blocks_[num_active_residual_blocks++] = residual_block; in RemoveFixedBlocks()
[all …]
Dblock_evaluate_preparer.cc50 void BlockEvaluatePreparer::Prepare(const ResidualBlock* residual_block, in Prepare() argument
56 scratch_evaluate_preparer_.Prepare(residual_block, in Prepare()
67 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in Prepare()
69 if (!residual_block->parameter_blocks()[j]->IsConstant()) { in Prepare()
Dscratch_evaluate_preparer.cc58 void ScratchEvaluatePreparer::Prepare(const ResidualBlock* residual_block, in Prepare() argument
63 int num_residuals = residual_block->NumResiduals(); in Prepare()
64 int num_parameter_blocks = residual_block->NumParameterBlocks(); in Prepare()
67 residual_block->parameter_blocks()[j]; in Prepare()
Ddense_jacobian_writer.h77 const ResidualBlock* residual_block = in Write() local
79 int num_parameter_blocks = residual_block->NumParameterBlocks(); in Write()
80 int num_residuals = residual_block->NumResiduals(); in Write()
84 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in Write()
Dgradient_checking_cost_function.cc281 ResidualBlock* residual_block = residual_blocks[i]; in CreateGradientCheckingProblemImpl() local
289 for (int j = 0; j < residual_block->NumParameterBlocks(); ++j) { in CreateGradientCheckingProblemImpl()
290 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateGradientCheckingProblemImpl()
293 extra_info += (j < residual_block->NumParameterBlocks() - 1) ? ", " : "]"; in CreateGradientCheckingProblemImpl()
298 CreateGradientCheckingCostFunction(residual_block->cost_function(), in CreateGradientCheckingProblemImpl()
309 const_cast<LossFunction*>(residual_block->loss_function()), in CreateGradientCheckingProblemImpl()
Dprogram_evaluator.h190 const ResidualBlock* residual_block = program_->residual_blocks()[i]; in Evaluate() local
201 preparer->Prepare(residual_block, in Evaluate()
210 if (!residual_block->Evaluate( in Evaluate()
236 int num_residuals = residual_block->NumResiduals(); in Evaluate()
237 int num_parameter_blocks = residual_block->NumParameterBlocks(); in Evaluate()
240 residual_block->parameter_blocks()[j]; in Evaluate()
Dresidual_block_utils_test.cc52 ResidualBlock residual_block(&cost_function, in CheckEvaluation() local
58 new double[residual_block.NumScratchDoublesForEvaluate()]); in CheckEvaluation()
65 EXPECT_EQ(residual_block.Evaluate(true, in CheckEvaluation()
Dparameter_block.h260 void AddResidualBlock(ResidualBlock* residual_block) { in AddResidualBlock() argument
264 residual_blocks_->insert(residual_block); in AddResidualBlock()
267 void RemoveResidualBlock(ResidualBlock* residual_block) { in RemoveResidualBlock() argument
271 CHECK(residual_blocks_->find(residual_block) != residual_blocks_->end()) in RemoveResidualBlock()
273 residual_blocks_->erase(residual_block); in RemoveResidualBlock()
Dproblem_impl.h125 void RemoveResidualBlock(ResidualBlock* residual_block);
157 const ResidualBlockId residual_block,
176 void InternalRemoveResidualBlock(ResidualBlock* residual_block);
190 void DeleteBlock(ResidualBlock* residual_block);
Dreorder_program.cc59 static int MinParameterBlock(const ResidualBlock* residual_block, in MinParameterBlock() argument
62 for (int i = 0; i < residual_block->NumParameterBlocks(); ++i) { in MinParameterBlock()
63 ParameterBlock* parameter_block = residual_block->parameter_blocks()[i]; in MinParameterBlock()
194 ResidualBlock* residual_block = (*residual_blocks)[i]; in LexicographicallyOrderResidualBlocks() local
195 int position = MinParameterBlock(residual_block, num_eliminate_blocks); in LexicographicallyOrderResidualBlocks()
Dcoordinate_descent_minimizer.cc102 ResidualBlock* residual_block = residual_blocks[i]; in Init() local
103 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in Init()
105 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in Init()
109 residual_blocks_[it->second].push_back(residual_block); in Init()
Dproblem.cc159 void Problem::RemoveResidualBlock(ResidualBlockId residual_block) { in RemoveResidualBlock() argument
160 problem_impl_->RemoveResidualBlock(residual_block); in RemoveResidualBlock()
248 const ResidualBlockId residual_block, in GetParameterBlocksForResidualBlock() argument
250 problem_impl_->GetParameterBlocksForResidualBlock(residual_block, in GetParameterBlocksForResidualBlock()
Dparameter_block_ordering.cc125 const ResidualBlock* residual_block = residual_blocks[i]; in CreateHessianGraph() local
126 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in CreateHessianGraph()
128 residual_block->parameter_blocks(); in CreateHessianGraph()
Ddynamic_compressed_row_jacobian_writer.cc71 const ResidualBlock* residual_block = in Write() local
73 const int num_residuals = residual_block->NumResiduals(); in Write()
Dblock_evaluate_preparer.h60 void Prepare(const ResidualBlock* residual_block,
Dscratch_evaluate_preparer.h55 void Prepare(const ResidualBlock* residual_block,
Dproblem_test.cc392 bool HasResidualBlock(ResidualBlock* residual_block) { in HasResidualBlock()
396 (problem->residual_block_set().find(residual_block) != in HasResidualBlock()
402 residual_block) != problem->program().residual_blocks().end(); in HasResidualBlock()
419 ResidualBlock* residual_block) { in ExpectParameterBlockContainsResidualBlock()
423 residual_block)); in ExpectParameterBlockContainsResidualBlock()
969 ResidualBlockId residual_block; in TEST_P() member
982 for (int i = 0; get_parameter_blocks_cases[i].residual_block; ++i) { in TEST_P()
984 get_parameter_blocks_cases[i].residual_block, in TEST_P()
DCMakeLists.txt91 residual_block.cc
273 CERES_TEST(residual_block)
/external/ceres-solver/include/ceres/
Dproblem.h303 void RemoveResidualBlock(ResidualBlockId residual_block);
368 const ResidualBlockId residual_block,
/external/ceres-solver/jni/
DAndroid.mk162 $(CERES_SRC_PATH)/residual_block.cc \
/external/ceres-solver/
DAndroid.mk171 $(CERES_SRC_PATH)/residual_block.cc \

12