/external/ceres-solver/internal/ceres/ |
D | residual_block_utils.cc | 52 const int num_residuals = block.NumResiduals(); in InvalidateEvaluation() local 55 InvalidateArray(num_residuals, residuals); in InvalidateEvaluation() 59 InvalidateArray(num_residuals * parameter_block_size, jacobians[i]); in InvalidateEvaluation() 89 const int num_residuals = block.NumResiduals(); in EvaluationToString() local 94 num_parameter_blocks, num_residuals); in EvaluationToString() 105 AppendArrayToString(num_residuals, residuals, &result); in EvaluationToString() 116 for (int k = 0; k < num_residuals; ++k) { in EvaluationToString() 137 const int num_residuals = block.NumResiduals(); in IsEvaluationValid() local 139 if (!IsArrayValid(num_residuals, residuals)) { in IsEvaluationValid() 146 if (!IsArrayValid(num_residuals * parameter_block_size, jacobians[i])) { in IsEvaluationValid()
|
D | residual_block.cc | 68 const int num_residuals = cost_function_->num_residuals(); in Evaluate() local 85 scratch += num_residuals * parameter_block->Size(); in Evaluate() 129 double squared_norm = VectorRef(residuals, num_residuals).squaredNorm(); in Evaluate() 144 num_residuals, in Evaluate() 147 num_residuals, in Evaluate() 179 correct.CorrectJacobian(num_residuals, in Evaluate() 189 correct.CorrectResiduals(num_residuals, residuals); in Evaluate()
|
D | compressed_row_jacobian_writer.cc | 54 const int num_residuals = residual_block->NumResiduals(); in CreateJacobian() local 59 num_jacobian_nonzeros += num_residuals * parameter_block->LocalSize(); in CreateJacobian() 106 const int num_residuals = residual_block->NumResiduals(); in CreateJacobian() local 107 for (int j = 0; j < num_residuals; ++j) { in CreateJacobian() 120 for (int r = 0; r < num_residuals; ++r) { in CreateJacobian() 131 row_pos += num_residuals; in CreateJacobian() 167 const int num_residuals = residual_block->NumResiduals(); in Write() local 198 for (int r = 0; r < num_residuals; ++r) { in Write()
|
D | conditioned_cost_function.cc | 54 set_num_residuals(wrapped_cost_function_->num_residuals()); in ConditionedCostFunction() 59 CHECK_EQ(wrapped_cost_function_->num_residuals(), conditioners_.size()); in ConditionedCostFunction() 60 for (int i = 0; i < wrapped_cost_function_->num_residuals(); i++) { in ConditionedCostFunction() 62 CHECK_EQ(1, conditioners[i]->num_residuals()); in ConditionedCostFunction() 86 for (int r = 0; r < wrapped_cost_function_->num_residuals(); r++) { in Evaluate()
|
D | runtime_numeric_diff_cost_function.cc | 64 int num_residuals = function->num_residuals(); in EvaluateJacobianForParameterBlock() local 67 num_residuals, in EvaluateJacobianForParameterBlock() 96 ResidualVector residuals(num_residuals); in EvaluateJacobianForParameterBlock() 122 Map<const ResidualVector>(residuals_at_eval_point, num_residuals); in EvaluateJacobianForParameterBlock() 141 set_num_residuals(function->num_residuals()); in RuntimeNumericDiffCostFunction()
|
D | problem_test.cc | 49 UnaryCostFunction(int num_residuals, int16 parameter_block_size) { in UnaryCostFunction() argument 50 set_num_residuals(num_residuals); in UnaryCostFunction() 58 for (int i = 0; i < num_residuals(); ++i) { in Evaluate() 68 BinaryCostFunction(int num_residuals, in BinaryCostFunction() argument 71 set_num_residuals(num_residuals); in BinaryCostFunction() 79 for (int i = 0; i < num_residuals(); ++i) { in Evaluate() 89 TernaryCostFunction(int num_residuals, in TernaryCostFunction() argument 93 set_num_residuals(num_residuals); in TernaryCostFunction() 102 for (int i = 0; i < num_residuals(); ++i) { in Evaluate()
|
D | gradient_checking_cost_function_test.cc | 267 UnaryCostFunction(int num_residuals, int16 parameter_block_size) { in UnaryCostFunction() argument 268 set_num_residuals(num_residuals); in UnaryCostFunction() 276 for (int i = 0; i < num_residuals(); ++i) { in Evaluate() 286 BinaryCostFunction(int num_residuals, in BinaryCostFunction() argument 289 set_num_residuals(num_residuals); in BinaryCostFunction() 297 for (int i = 0; i < num_residuals(); ++i) { in Evaluate() 307 TernaryCostFunction(int num_residuals, in TernaryCostFunction() argument 311 set_num_residuals(num_residuals); in TernaryCostFunction() 320 for (int i = 0; i < num_residuals(); ++i) { in Evaluate()
|
D | autodiff_test.cc | 343 for (int i = 0; i < num_residuals; ++i) { in operator ()() 349 int num_residuals; member 364 for (int num_residuals = 1; num_residuals < kMaxResiduals; ++num_residuals) { in TEST() local 366 functor.num_residuals = num_residuals; in TEST() 370 functor, parameters, num_residuals, residuals, jacobians))); in TEST() 373 for (int i = 0; i < num_residuals; ++i) { in TEST()
|
D | dense_jacobian_writer.h | 80 int num_residuals = residual_block->NumResiduals(); in Write() local 93 num_residuals, in Write() 99 num_residuals, in Write()
|
D | residual_block_test.cc | 45 TernaryCostFunction(int num_residuals, in TernaryCostFunction() argument 49 set_num_residuals(num_residuals); in TernaryCostFunction() 58 for (int i = 0; i < num_residuals(); ++i) { in Evaluate() 65 num_residuals(), in Evaluate() 173 for (int i = 0; i < num_residuals(); ++i) { in Evaluate() 190 num_residuals(), in Evaluate()
|
D | gradient_checking_cost_function.cc | 94 set_num_residuals(function->num_residuals()); in GradientCheckingCostFunction() 107 int num_residuals = function_->num_residuals(); in Evaluate() local 116 term_jacobians[i].resize(num_residuals, block_sizes[i]); in Evaluate() 118 finite_difference_jacobians[i].resize(num_residuals, block_sizes[i]); in Evaluate()
|
D | program_evaluator.h | 210 int num_residuals = residual_block->NumResiduals(); in Evaluate() local 219 num_residuals, in Evaluate() 224 VectorRef block_residual(block_residuals, num_residuals); in Evaluate() 297 const int num_residuals = residual_blocks[i]->NumResiduals(); in BuildResidualLayout() local 299 residual_pos += num_residuals; in BuildResidualLayout()
|
D | block_jacobian_writer.cc | 69 const int num_residuals = residual_block->NumResiduals(); in BuildJacobianLayout() local 79 f_block_pos += num_residuals * parameter_block->LocalSize(); in BuildJacobianLayout() 97 const int num_residuals = residual_block->NumResiduals(); in BuildJacobianLayout() local 108 num_residuals * parameter_block->LocalSize(); in BuildJacobianLayout()
|
D | normal_prior.cc | 55 VectorRef r(residuals, num_residuals()); in Evaluate() 61 MatrixRef(jacobians[0], num_residuals(), parameter_block_sizes()[0]) = A_; in Evaluate()
|
D | scratch_evaluate_preparer.cc | 63 int num_residuals = residual_block->NumResiduals(); in Prepare() local 72 jacobian_block_cursor += num_residuals * parameter_block->LocalSize(); in Prepare()
|
D | program.cc | 152 int num_residuals = 0; in NumResiduals() local 154 num_residuals += residual_blocks_[i]->NumResiduals(); in NumResiduals() 156 return num_residuals; in NumResiduals()
|
D | solver.cc | 85 num_residuals(-1), in Summary() 142 num_residuals); in FullReport() 152 num_residuals, num_residuals_reduced); in FullReport()
|
D | conditioned_cost_function_test.cc | 98 EXPECT_EQ(difference_cost_function->num_residuals(), in TEST() 99 conditioned_cost_function.num_residuals()); in TEST()
|
D | residual_block.h | 110 int NumResiduals() const { return cost_function_->num_residuals(); } in NumResiduals()
|
D | trust_region_minimizer.cc | 126 const int num_residuals = evaluator->NumResiduals(); in Minimize() local 132 Vector residuals(num_residuals); in Minimize() 137 Vector model_residuals(num_residuals); in Minimize()
|
D | evaluator_test.cc | 62 for (int i = 0; i < Base::num_residuals(); ++i) { in Evaluate() 81 Base::num_residuals(), in Evaluate() 177 int num_residuals = expected_num_rows; in EvaluateAndCompare() local 182 Vector residuals(num_residuals); in EvaluateAndCompare()
|
/external/ceres-solver/include/ceres/ |
D | numeric_diff_cost_function.h | 82 int num_residuals, 98 typedef Matrix<double, num_residuals, 1> ResidualVector; in EvaluateJacobianForParameterBlock() 100 typedef Matrix<double, num_residuals, parameter_block_size, in EvaluateJacobianForParameterBlock() 102 num_residuals > 1) ? ColMajor : RowMajor> JacobianMatrix; in EvaluateJacobianForParameterBlock() 105 num_residuals, in EvaluateJacobianForParameterBlock() 141 double residuals[num_residuals]; // NOLINT in EvaluateJacobianForParameterBlock() 152 Map<const ResidualVector>(residuals, num_residuals); in EvaluateJacobianForParameterBlock() 164 Map<ResidualVector>(residuals, num_residuals, 1); in EvaluateJacobianForParameterBlock() 169 Map<const ResidualVector>(residuals_at_eval_point, num_residuals); in EvaluateJacobianForParameterBlock() 182 int num_residuals, [all …]
|
D | cost_function.h | 104 int num_residuals() const { in num_residuals() function 113 void set_num_residuals(int num_residuals) { in set_num_residuals() argument 114 num_residuals_ = num_residuals; in set_num_residuals()
|
D | gradient_checker.h | 120 CHECK_EQ(M, term->num_residuals()); in Probe() 121 const int num_residuals = M; in Probe() local 166 results->term_jacobians[i].resize(num_residuals, block_sizes[i]); in Probe() 169 num_residuals, block_sizes[i]); in Probe() 173 results->cost.resize(num_residuals, 1); in Probe()
|
D | autodiff_cost_function.h | 178 AutoDiffCostFunction(CostFunctor* functor, int num_residuals) in AutoDiffCostFunction() argument 183 ::set_num_residuals(num_residuals); in AutoDiffCostFunction() 206 ::num_residuals(), in Evaluate()
|