/external/ceres-solver/internal/ceres/ |
D | parameter_block_test.cc | 41 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 …]
|
D | residual_block.cc | 86 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 …]
|
D | coordinate_descent_minimizer.cc | 105 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 …]
|
D | program.cc | 158 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 …]
|
D | compressed_row_jacobian_writer.cc | 71 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 …]
|
D | parameter_block_ordering.cc | 62 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 …]
|
D | block_jacobian_writer.cc | 74 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 …]
|
D | problem_impl.cc | 63 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 …]
|
D | gradient_checking_cost_function.cc | 264 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()
|
D | dense_jacobian_writer.h | 84 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()
|
D | scratch_evaluate_preparer.cc | 66 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()
|
D | dynamic_compressed_row_jacobian_writer.cc | 85 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()
|
D | reorder_program.cc | 63 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()
|
D | problem_impl.h | 148 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);
|
D | problem.cc | 226 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()
|
D | program_evaluator.h | 239 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()
|
D | residual_block_utils_test.cc | 48 ParameterBlock parameter_block(&x, 1, -1); in CheckEvaluation() local 50 parameter_blocks.push_back(¶meter_block); in CheckEvaluation()
|
D | covariance_impl.cc | 254 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()
|
D | problem_test.cc | 420 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()
|
D | CMakeLists.txt | 266 CERES_TEST(parameter_block)
|
/external/ceres-solver/include/ceres/ |
D | dynamic_numeric_diff_cost_function.h | 150 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/ |
D | version_history.rst | 305 #. Fix a logging bug in parameter_block.h
|
D | modeling.rst | 1472 ``parameter_block.size() == NumParameterBlocks``.
|