Home
last modified time | relevance | path

Searched refs:num_residuals (Results 1 – 25 of 29) sorted by relevance

12

/external/ceres-solver/internal/ceres/
Dresidual_block_utils.cc52 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()
Dresidual_block.cc68 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()
Dcompressed_row_jacobian_writer.cc54 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()
Dconditioned_cost_function.cc54 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()
Druntime_numeric_diff_cost_function.cc64 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()
Dproblem_test.cc49 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()
Dgradient_checking_cost_function_test.cc267 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()
Dautodiff_test.cc343 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()
Ddense_jacobian_writer.h80 int num_residuals = residual_block->NumResiduals(); in Write() local
93 num_residuals, in Write()
99 num_residuals, in Write()
Dresidual_block_test.cc45 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()
Dgradient_checking_cost_function.cc94 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()
Dprogram_evaluator.h210 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()
Dblock_jacobian_writer.cc69 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()
Dnormal_prior.cc55 VectorRef r(residuals, num_residuals()); in Evaluate()
61 MatrixRef(jacobians[0], num_residuals(), parameter_block_sizes()[0]) = A_; in Evaluate()
Dscratch_evaluate_preparer.cc63 int num_residuals = residual_block->NumResiduals(); in Prepare() local
72 jacobian_block_cursor += num_residuals * parameter_block->LocalSize(); in Prepare()
Dprogram.cc152 int num_residuals = 0; in NumResiduals() local
154 num_residuals += residual_blocks_[i]->NumResiduals(); in NumResiduals()
156 return num_residuals; in NumResiduals()
Dsolver.cc85 num_residuals(-1), in Summary()
142 num_residuals); in FullReport()
152 num_residuals, num_residuals_reduced); in FullReport()
Dconditioned_cost_function_test.cc98 EXPECT_EQ(difference_cost_function->num_residuals(), in TEST()
99 conditioned_cost_function.num_residuals()); in TEST()
Dresidual_block.h110 int NumResiduals() const { return cost_function_->num_residuals(); } in NumResiduals()
Dtrust_region_minimizer.cc126 const int num_residuals = evaluator->NumResiduals(); in Minimize() local
132 Vector residuals(num_residuals); in Minimize()
137 Vector model_residuals(num_residuals); in Minimize()
Devaluator_test.cc62 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/
Dnumeric_diff_cost_function.h82 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 …]
Dcost_function.h104 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()
Dgradient_checker.h120 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()
Dautodiff_cost_function.h178 AutoDiffCostFunction(CostFunctor* functor, int num_residuals) in AutoDiffCostFunction() argument
183 ::set_num_residuals(num_residuals); in AutoDiffCostFunction()
206 ::num_residuals(), in Evaluate()

12