Home
last modified time | relevance | path

Searched refs:jacobians (Results 1 – 25 of 44) sorted by relevance

12

/external/ceres-solver/internal/ceres/
Dresidual_block_utils_test.cc62 double* jacobians[] = { &jacobian }; in CheckEvaluation() local
66 jacobians, in CheckEvaluation()
76 double** jacobians) const { in Evaluate()
78 if (jacobians != NULL && jacobians[0] != NULL) { in Evaluate()
79 jacobians[0][0] = 0.0; in Evaluate()
91 double** jacobians) const { in Evaluate()
94 if (jacobians != NULL && jacobians[0] != NULL) { in Evaluate()
95 jacobians[0][0] = 0.0; in Evaluate()
105 double** jacobians) const { in Evaluate()
107 if (jacobians != NULL && jacobians[0] != NULL) { in Evaluate()
[all …]
Dautodiff_cost_function_test.cc69 double** jacobians = new double*[2]; in TEST() local
70 jacobians[0] = new double[2]; in TEST()
71 jacobians[1] = new double[2]; in TEST()
77 cost_function->Evaluate(parameters, &residuals, jacobians); in TEST()
79 EXPECT_EQ(3, jacobians[0][0]); in TEST()
80 EXPECT_EQ(4, jacobians[0][1]); in TEST()
81 EXPECT_EQ(1, jacobians[1][0]); in TEST()
82 EXPECT_EQ(2, jacobians[1][1]); in TEST()
84 delete[] jacobians[0]; in TEST()
85 delete[] jacobians[1]; in TEST()
[all …]
Dresidual_block.cc65 double** jacobians, in Evaluate() argument
79 if (jacobians != NULL) { in Evaluate()
82 if (jacobians[i] != NULL && in Evaluate()
87 global_jacobians[i] = jacobians[i]; in Evaluate()
101 double** eval_jacobians = (jacobians != NULL) ? global_jacobians.get() : NULL; in Evaluate()
132 if (jacobians != NULL) { in Evaluate()
134 if (jacobians[i] != NULL) { in Evaluate()
146 MatrixRef local_jacobian(jacobians[i], in Evaluate()
166 if (jacobians == NULL && !outputting_residuals) { in Evaluate()
173 if (jacobians != NULL) { in Evaluate()
[all …]
Dresidual_block_utils.cc50 double** jacobians) { in InvalidateEvaluation() argument
56 if (jacobians != NULL) { in InvalidateEvaluation()
59 InvalidateArray(num_residuals * parameter_block_size, jacobians[i]); in InvalidateEvaluation()
84 double** jacobians) { in EvaluationToString() argument
118 (jacobians != NULL && jacobians[i] != NULL) in EvaluationToString()
119 ? jacobians[i] + k * parameter_block_size + j in EvaluationToString()
135 double** jacobians) { in IsEvaluationValid() argument
143 if (jacobians != NULL) { in IsEvaluationValid()
146 if (!IsArrayValid(num_residuals * parameter_block_size, jacobians[i])) { in IsEvaluationValid()
Dgradient_checking_cost_function_test.cc90 double** jacobians) const { in Evaluate()
104 if (jacobians) { in Evaluate()
106 if (jacobians[j]) { in Evaluate()
109 jacobians[j][u] = - f * a_[j][u]; in Evaluate()
117 jacobians[j][u] += 500; in Evaluate()
151 vector<double*> jacobians(arity); in TEST() local
156 jacobians[j] = new double[dim[j]]; in TEST()
175 &jacobians[0]); in TEST()
180 EXPECT_EQ(original_jacobians[j][k], jacobians[j][k]); in TEST()
184 delete[] jacobians[j]; in TEST()
[all …]
Dconditioned_cost_function.cc79 double** jacobians) const { in Evaluate()
81 jacobians); in Evaluate()
99 if (!jacobians) { in Evaluate()
112 if (jacobians) { in Evaluate()
116 if (jacobians[i]) { in Evaluate()
119 VectorRef jacobian_row(jacobians[i] + r * parameter_block_size, in Evaluate()
Dgradient_checker_test.cc74 double** jacobians) const { in Evaluate()
88 if (jacobians) { in Evaluate()
90 if (jacobians[j]) { in Evaluate()
93 jacobians[j][u] = - f * a_[j][u]; in Evaluate()
127 double** jacobians) const { in Evaluate()
141 if (jacobians) { in Evaluate()
143 if (jacobians[j]) { in Evaluate()
146 jacobians[j][u] = - f * a_[j][u] + 0.001; in Evaluate()
Dnumeric_diff_cost_function_test.cc62 double** jacobians) const { in Evaluate()
63 (void) jacobians; // Ignored. in Evaluate()
103 double *jacobians[2] = { &dydx1[0], &dydx2[0] }; in TEST() local
109 &jacobians[0])); in TEST()
143 double** jacobians) const { in Evaluate()
144 (void) jacobians; // Ignored. in Evaluate()
208 double *jacobians[2] = { &dydx1[0], &dydx2[0] }; in TEST() local
214 &jacobians[0])); in TEST()
240 double** jacobians) const { in Evaluate()
Druntime_numeric_diff_cost_function_test.cc66 double** jacobians) const { in Evaluate()
67 (void) jacobians; // Ignored. in Evaluate()
99 double *jacobians[2] = { &dydx1[0], &dydx2[0] }; in TEST() local
105 &jacobians[0])); in TEST()
139 double** jacobians) const { in Evaluate()
140 (void) jacobians; // Ignored. in Evaluate()
195 double *jacobians[2] = { &dydx1[0], &dydx2[0] }; in TEST() local
201 &jacobians[0])); in TEST()
Dblock_evaluate_preparer.cc53 double** jacobians) { in Prepare() argument
59 jacobians); in Prepare()
70 jacobians[j] = jacobian_values + *jacobian_block_offset; in Prepare()
77 jacobians[j] = NULL; in Prepare()
Dnormal_prior.cc53 double** jacobians) const { in Evaluate()
60 if ((jacobians != NULL) && (jacobians[0] != NULL)) { in Evaluate()
61 MatrixRef(jacobians[0], num_residuals(), parameter_block_sizes()[0]) = A_; in Evaluate()
Druntime_numeric_diff_cost_function.cc54 double** jacobians) { in EvaluateJacobianForParameterBlock() argument
66 Map<JacobianMatrix> parameter_jacobian(jacobians[parameter_block], in EvaluateJacobianForParameterBlock()
148 double** jacobians) const { in Evaluate()
155 if (!jacobians) { in Evaluate()
181 if (!jacobians[block]) { in Evaluate()
192 jacobians)) { in Evaluate()
Dresidual_block_utils.h58 double** jacobians);
66 double** jacobians);
75 double** jacobians);
Dresidual_block_test.cc57 double** jacobians) const { in Evaluate()
61 if (jacobians) { in Evaluate()
63 if (jacobians[k] != NULL) { in Evaluate()
64 MatrixRef jacobian(jacobians[k], in Evaluate()
172 double** jacobians) const { in Evaluate()
176 if (jacobians) { in Evaluate()
188 if (jacobians[k] != NULL) { in Evaluate()
189 MatrixRef jacobian(jacobians[k], in Evaluate()
Dconditioned_cost_function_test.cc56 double** jacobians) const { in Evaluate()
58 if (jacobians && *jacobians) { in Evaluate()
59 **jacobians = a_; in Evaluate()
Dscratch_evaluate_preparer.cc61 double** jacobians) { in Prepare() argument
69 jacobians[j] = NULL; in Prepare()
71 jacobians[j] = jacobian_block_cursor; in Prepare()
Dautodiff_test.cc196 double *jacobians[] = { J_PX }; in TEST() local
198 b, parameters, 2, ad_x1, jacobians))); in TEST()
211 double *jacobians[] = { J_P, J_X }; in TEST() local
213 b, parameters, 2, ad_x2, jacobians))); in TEST()
318 double *jacobians[] = { J_q, J_c, J_X }; in TEST() local
320 b, parameters, 2, ad_x, jacobians))); in TEST()
358 double *jacobians[] = { J_x }; in TEST() local
370 functor, parameters, num_residuals, residuals, jacobians))); in TEST()
Devaluator_test.cc61 double** jacobians) const { in Evaluate()
65 if (jacobians) { in Evaluate()
79 if (jacobians[k] != NULL) { in Evaluate()
80 MatrixRef jacobian(jacobians[k], in Evaluate()
602 double** jacobians) const { in Evaluate()
608 if (jacobians != NULL) { in Evaluate()
609 double* jacobian = jacobians[0]; in Evaluate()
712 double** jacobians) const { in Evaluate()
720 if (jacobians == NULL) { in Evaluate()
725 if (jacobians[j] != NULL) { in Evaluate()
[all …]
Dtrust_region_minimizer_test.cc295 double** jacobians) const { in Evaluate()
308 if (jacobians == NULL) { in Evaluate()
313 if (jacobians[i] != NULL) { in Evaluate()
330 jacobians[i][dim] = 0.; in Evaluate()
333 jacobians[i][dim] -= u[dim] / norm_u; in Evaluate()
337 jacobians[i][dim] += v[dim] / norm_v; in Evaluate()
Dnormal_prior_test.cc107 double* jacobians[1]; in TEST() local
108 jacobians[0] = NULL; in TEST()
113 prior.Evaluate(&x, residuals.data(), jacobians); in TEST()
/external/ceres-solver/examples/
Dquadratic.cc52 double** jacobians) const { in Evaluate()
61 if (jacobians != NULL && jacobians[0] != NULL) { in Evaluate()
62 jacobians[0][0] = -1; in Evaluate()
Dfields_of_experts.cc56 double** jacobians) const { in Evaluate()
63 if (jacobians != NULL) { in Evaluate()
65 if (jacobians[i] != NULL) { in Evaluate()
66 jacobians[i][0] = filter_[i]; in Evaluate()
Ddenoising.cc74 double** jacobians) const { in Evaluate()
77 if (jacobians != NULL && jacobians[0] != NULL) { in Evaluate()
78 jacobians[0][0] = sqrta_; in Evaluate()
/external/ceres-solver/include/ceres/
Dnumeric_diff_cost_function.h92 double **jacobians) { in EvaluateJacobianForParameterBlock()
104 Map<JacobianMatrix> parameter_jacobian(jacobians[parameter_block], in EvaluateJacobianForParameterBlock()
194 double **jacobians) {
218 double** jacobians) const {
225 if (!jacobians) {
255 if (N ## block && jacobians[block]) { \
264 jacobians)) { \
Dautodiff_cost_function.h195 double** jacobians) const { in Evaluate() argument
196 if (!jacobians) { in Evaluate()
208 jacobians); in Evaluate()

12