Home
last modified time | relevance | path

Searched refs:parameter_block (Results 1 – 23 of 23) sorted by relevance

/external/ceres-solver/internal/ceres/
Dparameter_block_test.cc41 ParameterBlock parameter_block(x, 3, -1); in TEST() local
50 parameter_block.SetParameterization(&subset_wrong_size), "global"); in TEST()
54 (parameter_block.SetParameterization(NULL), "NULL"); in TEST()
58 parameter_block.SetParameterization(&subset); in TEST()
61 parameter_block.SetParameterization(&subset); in TEST()
64 EXPECT_DEATH_IF_SUPPORTED(parameter_block.SetParameterization(NULL), "NULL"); in TEST()
69 (parameter_block.SetParameterization(&subset_different), "re-set"); in TEST()
73 parameter_block.LocalParameterizationJacobian(), in TEST()
86 parameter_block.Plus(x, delta, x_plus_delta); in TEST()
114 ParameterBlock parameter_block(x, 1, -1, &test_parameterization); in TEST() local
[all …]
Dresidual_block.cc86 const ParameterBlock* parameter_block = parameter_blocks_[i]; in Evaluate() local
88 parameter_block->LocalParameterizationJacobian() != NULL) { in Evaluate()
90 scratch += num_residuals * parameter_block->Size(); in Evaluate()
140 const ParameterBlock* parameter_block = parameter_blocks_[i]; in Evaluate() local
143 if (parameter_block->LocalParameterizationJacobian() != NULL) { in Evaluate()
148 parameter_block->Size(), in Evaluate()
149 parameter_block->LocalParameterizationJacobian(), in Evaluate()
150 parameter_block->Size(), in Evaluate()
151 parameter_block->LocalSize(), in Evaluate()
152 jacobians[i], 0, 0, num_residuals, parameter_block->LocalSize()); in Evaluate()
[all …]
Dcoordinate_descent_minimizer.cc105 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in Init() local
107 parameter_block_index.find(parameter_block); in Init()
127 ParameterBlock* parameter_block = parameter_blocks_[i]; in Minimize() local
128 parameter_block->SetState(parameters + parameter_block->state_offset()); in Minimize()
129 parameter_block->SetConstant(); in Minimize()
161 ParameterBlock* parameter_block = parameter_blocks_[j]; in Minimize() local
162 const int old_index = parameter_block->index(); in Minimize()
163 const int old_delta_offset = parameter_block->delta_offset(); in Minimize()
164 parameter_block->SetVarying(); in Minimize()
165 parameter_block->set_index(0); in Minimize()
[all …]
Dprogram.cc158 const ParameterBlock* parameter_block = parameter_blocks_[i]; in IsValid() local
159 if (parameter_block->index() != i || in IsValid()
160 parameter_block->state_offset() != state_offset || in IsValid()
161 parameter_block->delta_offset() != delta_offset) { in IsValid()
164 << parameter_block->ToString(); in IsValid()
178 const ParameterBlock* parameter_block = parameter_blocks_[i]; in ParameterBlocksAreFinite() local
179 const double* array = parameter_block->user_state(); in ParameterBlocksAreFinite()
180 const int size = parameter_block->Size(); in ParameterBlocksAreFinite()
197 const ParameterBlock* parameter_block = parameter_blocks_[i]; in IsBoundsConstrained() local
198 if (parameter_block->IsConstant()) { in IsBoundsConstrained()
[all …]
Dcompressed_row_jacobian_writer.cc71 const ParameterBlock* parameter_block = in GetOrderedParameterBlocks() local
73 if (!parameter_block->IsConstant()) { in GetOrderedParameterBlocks()
75 make_pair(parameter_block->index(), j)); in GetOrderedParameterBlocks()
95 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateJacobian() local
96 if (!parameter_block->IsConstant()) { in CreateJacobian()
97 num_jacobian_nonzeros += num_residuals * parameter_block->LocalSize(); in CreateJacobian()
127 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateJacobian() local
128 if (!parameter_block->IsConstant()) { in CreateJacobian()
129 parameter_indices.push_back(parameter_block->index()); in CreateJacobian()
130 num_derivatives += parameter_block->LocalSize(); in CreateJacobian()
[all …]
Dparameter_block_ordering.cc62 ParameterBlock* parameter_block = parameter_blocks[i]; in ComputeStableSchurOrdering() local
63 if (parameter_block->IsConstant()) { in ComputeStableSchurOrdering()
64 ordering->push_back(parameter_block); in ComputeStableSchurOrdering()
81 ParameterBlock* parameter_block = parameter_blocks[i]; in ComputeSchurOrdering() local
82 if (parameter_block->IsConstant()) { in ComputeSchurOrdering()
83 ordering->push_back(parameter_block); in ComputeSchurOrdering()
103 ParameterBlock* parameter_block = independent_set_ordering[i]; in ComputeRecursiveIndependentSetOrdering() local
104 ordering->AddElementToGroup(parameter_block->mutable_user_state(), round); in ComputeRecursiveIndependentSetOrdering()
105 graph->RemoveVertex(parameter_block); in ComputeRecursiveIndependentSetOrdering()
117 ParameterBlock* parameter_block = parameter_blocks[i]; in CreateHessianGraph() local
[all …]
Dblock_jacobian_writer.cc74 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in BuildJacobianLayout() local
75 if (!parameter_block->IsConstant()) { in BuildJacobianLayout()
78 if (parameter_block->index() < num_eliminate_blocks) { in BuildJacobianLayout()
79 f_block_pos += num_residuals * parameter_block->LocalSize(); in BuildJacobianLayout()
102 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in BuildJacobianLayout() local
103 const int parameter_block_index = parameter_block->index(); in BuildJacobianLayout()
104 if (parameter_block->IsConstant()) { in BuildJacobianLayout()
108 num_residuals * parameter_block->LocalSize(); in BuildJacobianLayout()
190 const ParameterBlock* parameter_block = in CreateJacobian() local
192 if (!parameter_block->IsConstant()) { in CreateJacobian()
[all …]
Dproblem_impl.cc63 double* parameter_block) { in FindParameterBlockOrDie() argument
64 ParameterMap::const_iterator it = parameter_map.find(parameter_block); in FindParameterBlockOrDie()
66 << "Parameter block not found: " << parameter_block; in FindParameterBlockOrDie()
200 void ProblemImpl::DeleteBlock(ParameterBlock* parameter_block) { in DeleteBlock() argument
202 parameter_block->local_parameterization() != NULL) { in DeleteBlock()
204 parameter_block->mutable_local_parameterization()); in DeleteBlock()
206 parameter_block_map_.erase(parameter_block->mutable_user_state()); in DeleteBlock()
207 delete parameter_block; in DeleteBlock()
465 ParameterBlock* parameter_block = in AddParameterBlock() local
468 parameter_block->SetParameterization(local_parameterization); in AddParameterBlock()
[all …]
Dgradient_checking_cost_function.cc264 ParameterBlock* parameter_block = parameter_blocks[i]; in CreateGradientCheckingProblemImpl() local
266 parameter_block->mutable_user_state(), in CreateGradientCheckingProblemImpl()
267 parameter_block->Size(), in CreateGradientCheckingProblemImpl()
268 parameter_block->mutable_local_parameterization()); in CreateGradientCheckingProblemImpl()
270 if (parameter_block->IsConstant()) { in CreateGradientCheckingProblemImpl()
272 parameter_block->mutable_user_state()); in CreateGradientCheckingProblemImpl()
290 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateGradientCheckingProblemImpl() local
291 parameter_blocks.push_back(parameter_block->mutable_user_state()); in CreateGradientCheckingProblemImpl()
292 StringAppendF(&extra_info, "%p", parameter_block->mutable_user_state()); in CreateGradientCheckingProblemImpl()
Ddense_jacobian_writer.h84 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in Write() local
87 if (parameter_block->IsConstant()) { in Write()
91 const int parameter_block_size = parameter_block->LocalSize(); in Write()
98 parameter_block->delta_offset(), in Write()
Dscratch_evaluate_preparer.cc66 const ParameterBlock* parameter_block = in Prepare() local
68 if (parameter_block->IsConstant()) { in Prepare()
72 jacobian_block_cursor += num_residuals * parameter_block->LocalSize(); in Prepare()
Ddynamic_compressed_row_jacobian_writer.cc85 const ParameterBlock* parameter_block = in Write() local
89 const int parameter_block_size = parameter_block->LocalSize(); in Write()
99 residual_offset + r, parameter_block->delta_offset() + c, v); in Write()
Dreorder_program.cc63 ParameterBlock* parameter_block = residual_block->parameter_blocks()[i]; in MinParameterBlock() local
64 if (!parameter_block->IsConstant()) { in MinParameterBlock()
65 CHECK_NE(parameter_block->index(), -1) in MinParameterBlock()
68 min_parameter_block_position = std::min(parameter_block->index(), in MinParameterBlock()
333 double* parameter_block = schur_ordering[i]->mutable_user_state(); in ReorderProgramForSchurTypeLinearSolver() local
335 parameter_block_ordering->AddElementToGroup(parameter_block, group_id); in ReorderProgramForSchurTypeLinearSolver()
Dproblem_impl.h148 int ParameterBlockSize(const double* parameter_block) const;
149 int ParameterBlockLocalSize(const double* parameter_block) const;
151 bool HasParameterBlock(const double* parameter_block) const;
191 void DeleteBlock(ParameterBlock* parameter_block);
Dproblem.cc226 int Problem::ParameterBlockSize(const double* parameter_block) const { in ParameterBlockSize()
227 return problem_impl_->ParameterBlockSize(parameter_block); in ParameterBlockSize()
230 int Problem::ParameterBlockLocalSize(const double* parameter_block) const { in ParameterBlockLocalSize()
231 return problem_impl_->ParameterBlockLocalSize(parameter_block); in ParameterBlockLocalSize()
Dprogram_evaluator.h239 const ParameterBlock* parameter_block = in Evaluate() local
241 if (parameter_block->IsConstant()) { in Evaluate()
248 parameter_block->LocalSize(), in Evaluate()
250 scratch->gradient.get() + parameter_block->delta_offset()); in Evaluate()
Dresidual_block_utils_test.cc48 ParameterBlock parameter_block(&x, 1, -1); in CheckEvaluation() local
50 parameter_blocks.push_back(&parameter_block); in CheckEvaluation()
Dcovariance_impl.cc254 double* parameter_block = all_parameter_blocks[i]; in ComputeCovarianceSparsity() local
256 ParameterBlock* block = FindOrDie(parameter_map, parameter_block); in ComputeCovarianceSparsity()
258 constant_parameter_blocks_.insert(parameter_block); in ComputeCovarianceSparsity()
260 active_parameter_blocks.push_back(parameter_block); in ComputeCovarianceSparsity()
272 double* parameter_block = active_parameter_blocks[i]; in ComputeCovarianceSparsity() local
274 problem->ParameterBlockLocalSize(parameter_block); in ComputeCovarianceSparsity()
275 parameter_block_to_row_index_[parameter_block] = num_rows; in ComputeCovarianceSparsity()
Dproblem_test.cc420 ParameterBlock* parameter_block = in ExpectParameterBlockContainsResidualBlock() local
422 EXPECT_TRUE(ContainsKey(*(parameter_block->mutable_residual_blocks()), in ExpectParameterBlockContainsResidualBlock()
427 ParameterBlock* parameter_block = in ExpectSize() local
429 EXPECT_EQ(size, parameter_block->mutable_residual_blocks()->size()); in ExpectSize()
949 double* parameter_block; in TEST_P() member
958 for (int i = 0; get_residual_blocks_cases[i].parameter_block; ++i) { in TEST_P()
960 get_residual_blocks_cases[i].parameter_block, in TEST_P()
DCMakeLists.txt266 CERES_TEST(parameter_block)
/external/ceres-solver/include/ceres/
Ddynamic_numeric_diff_cost_function.h150 const int parameter_block, in EvaluateJacobianForParameterBlock()
166 Map<JacobianMatrix> parameter_jacobian(jacobians[parameter_block], in EvaluateJacobianForParameterBlock()
171 Map<ParameterVector> x_plus_delta(parameters[parameter_block], in EvaluateJacobianForParameterBlock()
/external/ceres-solver/docs/source/
Dversion_history.rst305 #. Fix a logging bug in parameter_block.h
Dmodeling.rst1472 ``parameter_block.size() == NumParameterBlocks``.