Home
last modified time | relevance | path

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

12

/external/ceres-solver/internal/ceres/
Dparameter_block_ordering_test.cc85 const vector<ParameterBlock*>& parameter_blocks = program.parameter_blocks(); in TEST_F() local
92 EXPECT_TRUE(vertices.find(parameter_blocks[i]) != vertices.end()); in TEST_F()
96 const VertexSet& neighbors = graph->Neighbors(parameter_blocks[0]); in TEST_F()
98 EXPECT_TRUE(neighbors.find(parameter_blocks[2]) != neighbors.end()); in TEST_F()
99 EXPECT_TRUE(neighbors.find(parameter_blocks[3]) != neighbors.end()); in TEST_F()
103 const VertexSet& neighbors = graph->Neighbors(parameter_blocks[1]); in TEST_F()
105 EXPECT_TRUE(neighbors.find(parameter_blocks[2]) != neighbors.end()); in TEST_F()
109 const VertexSet& neighbors = graph->Neighbors(parameter_blocks[2]); in TEST_F()
111 EXPECT_TRUE(neighbors.find(parameter_blocks[0]) != neighbors.end()); in TEST_F()
112 EXPECT_TRUE(neighbors.find(parameter_blocks[1]) != neighbors.end()); in TEST_F()
[all …]
Dparameter_block_ordering.cc51 const vector<ParameterBlock*>& parameter_blocks = program.parameter_blocks(); in ComputeSchurOrdering() local
54 for (int i = 0; i < parameter_blocks.size(); ++i) { in ComputeSchurOrdering()
55 ParameterBlock* parameter_block = parameter_blocks[i]; in ComputeSchurOrdering()
67 const vector<ParameterBlock*> parameter_blocks = program.parameter_blocks(); in ComputeRecursiveIndependentSetOrdering() local
72 while (num_covered < parameter_blocks.size()) { in ComputeRecursiveIndependentSetOrdering()
89 const vector<ParameterBlock*>& parameter_blocks = program.parameter_blocks(); in CreateHessianGraph() local
90 for (int i = 0; i < parameter_blocks.size(); ++i) { in CreateHessianGraph()
91 ParameterBlock* parameter_block = parameter_blocks[i]; in CreateHessianGraph()
101 ParameterBlock* const* parameter_blocks = in CreateHessianGraph() local
102 residual_block->parameter_blocks(); in CreateHessianGraph()
[all …]
Dblock_jacobian_writer.cc74 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in BuildJacobianLayout()
102 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in BuildJacobianLayout()
152 const vector<ParameterBlock*>& parameter_blocks = in CreateJacobian() local
153 program_->parameter_blocks(); in CreateJacobian()
156 bs->cols.resize(parameter_blocks.size()); in CreateJacobian()
157 for (int i = 0, cursor = 0; i < parameter_blocks.size(); ++i) { in CreateJacobian()
158 CHECK_NE(parameter_blocks[i]->index(), -1); in CreateJacobian()
159 CHECK(!parameter_blocks[i]->IsConstant()); in CreateJacobian()
160 bs->cols[i].size = parameter_blocks[i]->LocalSize(); in CreateJacobian()
182 if (residual_block->parameter_blocks()[j]->index() != -1) { in CreateJacobian()
[all …]
Dcompressed_row_jacobian_writer.cc57 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateJacobian()
89 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateJacobian()
117 program_->parameter_blocks()[parameter_indices[j]]; in CreateJacobian()
138 const vector<ParameterBlock*>& parameter_blocks = program_->parameter_blocks(); in CreateJacobian() local
140 col_blocks.resize(parameter_blocks.size()); in CreateJacobian()
141 for (int i = 0; i < parameter_blocks.size(); ++i) { in CreateJacobian()
142 col_blocks[i] = parameter_blocks[i]->LocalSize(); in CreateJacobian()
178 residual_block->parameter_blocks()[j]; in Write()
193 program_->parameter_blocks()[evaluated_jacobian_blocks[i].first]; in Write()
Dgradient_checking_cost_function.cc252 const vector<ParameterBlock*>& parameter_blocks = program->parameter_blocks(); in CreateGradientCheckingProblemImpl() local
253 for (int i = 0; i < parameter_blocks.size(); ++i) { in CreateGradientCheckingProblemImpl()
254 ParameterBlock* parameter_block = parameter_blocks[i]; in CreateGradientCheckingProblemImpl()
278 vector<double*> parameter_blocks; in CreateGradientCheckingProblemImpl() local
280 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateGradientCheckingProblemImpl()
281 parameter_blocks.push_back(parameter_block->mutable_user_state()); in CreateGradientCheckingProblemImpl()
300 parameter_blocks); in CreateGradientCheckingProblemImpl()
Dsolver_impl.cc422 if (reduced_program->parameter_blocks().size() < 2) { in Solve()
523 const vector<ParameterBlock*>& parameter_blocks = program.parameter_blocks(); in IsOrderingValid() local
524 for (vector<ParameterBlock*>::const_iterator it = parameter_blocks.begin(); in IsOrderingValid()
525 it != parameter_blocks.end(); in IsOrderingValid()
559 ParameterBlock* const* parameter_blocks = (*it)->parameter_blocks(); in IsParameterBlockSetIndependent() local
564 parameter_blocks[i]->mutable_user_state()); in IsParameterBlockSetIndependent()
580 vector<ParameterBlock*>* parameter_blocks = in RemoveFixedBlocksFromProgram() local
592 for (int i = 0; i < parameter_blocks->size(); ++i) { in RemoveFixedBlocksFromProgram()
593 (*parameter_blocks)[i]->set_index(-1); in RemoveFixedBlocksFromProgram()
610 ParameterBlock* parameter_block = residual_block->parameter_blocks()[k]; in RemoveFixedBlocksFromProgram()
[all …]
Dproblem_impl.cc80 vector<ParameterBlock*>* parameter_blocks) { in InternalAddParameterBlock() argument
120 parameter_blocks->push_back(new_parameter_block); in InternalAddParameterBlock()
175 const vector<double*>& parameter_blocks) { in AddResidualBlock() argument
177 CHECK_EQ(parameter_blocks.size(), in AddResidualBlock()
183 CHECK_EQ(parameter_block_sizes.size(), parameter_blocks.size()) in AddResidualBlock()
188 vector<double*> sorted_parameter_blocks(parameter_blocks); in AddResidualBlock()
195 for (int i = 0; i < parameter_blocks.size(); ++i) { in AddResidualBlock()
196 blocks += internal::StringPrintf(" %p ", parameter_blocks[i]); in AddResidualBlock()
205 vector<ParameterBlock*> parameter_block_ptrs(parameter_blocks.size()); in AddResidualBlock()
206 for (int i = 0; i < parameter_blocks.size(); ++i) { in AddResidualBlock()
[all …]
Dcoordinate_descent_minimizer.cc89 const vector<ParameterBlock*>& parameter_blocks = program.parameter_blocks(); in Init() local
90 for (int i = 0; i < parameter_blocks.size(); ++i) { in Init()
91 if (!ordering.IsMember(parameter_blocks[i]->mutable_user_state())) { in Init()
92 parameter_blocks_.push_back(parameter_blocks[i]); in Init()
105 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in Init()
Dresidual_block_test.cc101 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()
240 EXPECT_EQ(parameters[0], residual_block.parameter_blocks()[0]); in TEST()
241 EXPECT_EQ(parameters[1], residual_block.parameter_blocks()[1]); in TEST()
242 EXPECT_EQ(parameters[2], residual_block.parameter_blocks()[2]); in TEST()
Dresidual_block_utils_test.cc49 vector<ParameterBlock*> parameter_blocks; in CheckEvaluation() local
50 parameter_blocks.push_back(&parameter_block); in CheckEvaluation()
54 parameter_blocks); in CheckEvaluation()
Dresidual_block_utils.cc58 const int parameter_block_size = block.parameter_blocks()[i]->Size(); in InvalidateEvaluation()
109 const int parameter_block_size = block.parameter_blocks()[i]->Size(); in EvaluationToString()
145 const int parameter_block_size = block.parameter_blocks()[i]->Size(); in IsEvaluationValid()
Dresidual_block.h69 const vector<ParameterBlock*>& parameter_blocks);
100 ParameterBlock* const* parameter_blocks() const { in parameter_blocks() function
Dsolver_impl_test.cc427 const vector<ParameterBlock*>& parameter_blocks = in TEST() local
428 reduced_program->parameter_blocks(); in TEST()
434 EXPECT_EQ(reduced_program->parameter_blocks().size(), 2); in TEST()
442 EXPECT_NE(parameter_blocks[i]->mutable_user_state(), &z); in TEST()
490 const vector<ParameterBlock*>& parameter_blocks = program->parameter_blocks(); in TEST() local
492 EXPECT_EQ(parameter_blocks.size(), 3); in TEST()
493 EXPECT_EQ(parameter_blocks[0]->user_state(), &x); in TEST()
494 EXPECT_EQ(parameter_blocks[1]->user_state(), &z); in TEST()
495 EXPECT_EQ(parameter_blocks[2]->user_state(), &y); in TEST()
750 EXPECT_EQ(&x, problem.program().parameter_blocks()[0]->state()); in TEST()
[all …]
Dresidual_block.cc52 const vector<ParameterBlock*>& parameter_blocks) in ResidualBlock() argument
58 std::copy(parameter_blocks.begin(), in ResidualBlock()
59 parameter_blocks.end(), in ResidualBlock()
Dgradient_checking_cost_function_test.cc388 for (int i = 0; i < program.parameter_blocks().size(); ++i) { in TEST()
390 program.parameter_blocks()[i], in TEST()
391 gradient_checking_program.parameter_blocks()[i]); in TEST()
410 original_residual_block->parameter_blocks()[j], in TEST()
411 new_residual_block->parameter_blocks()[j]); in TEST()
Dprogram.cc58 const vector<ParameterBlock*>& Program::parameter_blocks() const { in parameter_blocks() function in ceres::internal::Program
128 residual_block->parameter_blocks()[j]->set_index(-1); in SetParameterOffsetsAndIndex()
194 residual_block->parameter_blocks()[j]->LocalSize(); in MaxDerivativesPerResidualBlock()
Dproblem.cc49 const vector<double*>& parameter_blocks) { in AddResidualBlock() argument
52 parameter_blocks); in AddResidualBlock()
Dblock_evaluate_preparer.cc69 if (!residual_block->parameter_blocks()[j]->IsConstant()) { in Prepare()
Dscratch_evaluate_preparer.cc67 residual_block->parameter_blocks()[j]; in Prepare()
Dprogram.h61 const vector<ParameterBlock*>& parameter_blocks() const;
Devaluator_test.cc510 vector<ParameterBlock*>* parameter_blocks = in TEST_P() local
516 ParameterBlock* parameter_block_z = parameter_blocks->back(); in TEST_P()
517 parameter_blocks->pop_back(); in TEST_P()
552 parameter_blocks->push_back(parameter_block_z); in TEST_P()
Ddense_jacobian_writer.h84 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in Write()
Dproblem_impl.h74 const vector<double*>& parameter_blocks);
Dprogram_evaluator.h214 residual_block->parameter_blocks()[j]; in Evaluate()
/external/ceres-solver/include/ceres/
Dproblem.h185 const vector<double*>& parameter_blocks);

12