Home
last modified time | relevance | path

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

123

/external/ceres-solver/internal/ceres/
Dresidual_block_utils_test.cc63 double* jacobians[] = { &jacobian }; in CheckEvaluation() local
68 jacobians, in CheckEvaluation()
78 double** jacobians) const { in Evaluate()
80 if (jacobians != NULL && jacobians[0] != NULL) { in Evaluate()
81 jacobians[0][0] = 0.0; in Evaluate()
93 double** jacobians) const { in Evaluate()
96 if (jacobians != NULL && jacobians[0] != NULL) { in Evaluate()
97 jacobians[0][0] = 0.0; in Evaluate()
107 double** jacobians) const { in Evaluate()
109 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.cc70 double** jacobians, in Evaluate() argument
84 if (jacobians != NULL) { in Evaluate()
87 if (jacobians[i] != NULL && in Evaluate()
92 global_jacobians[i] = jacobians[i]; in Evaluate()
106 double** eval_jacobians = (jacobians != NULL) ? global_jacobians.get() : NULL; in Evaluate()
137 if (jacobians != NULL) { in Evaluate()
139 if (jacobians[i] != NULL) { in Evaluate()
152 jacobians[i], 0, 0, num_residuals, parameter_block->LocalSize()); in Evaluate()
169 if (jacobians == NULL && !outputting_residuals) { in Evaluate()
176 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()
68 double** jacobians) { in EvaluationToString() argument
102 (jacobians != NULL && jacobians[i] != NULL) in EvaluationToString()
103 ? jacobians[i] + k * parameter_block_size + j in EvaluationToString()
119 double** jacobians) { in IsEvaluationValid() argument
127 if (jacobians != NULL) { in IsEvaluationValid()
130 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 …]
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()
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()
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()
520 double* jacobians[10]; in TEST() local
525 jacobians[i] = jacobian_values + i; in TEST()
[all …]
Dc_api_test.cc114 double** jacobians) { in exponential_residual() argument
122 if (jacobians == NULL) { in exponential_residual()
125 if (jacobians[0] != NULL) { in exponential_residual()
126 jacobians[0][0] = - x * exp(m * x + c); // dr/dm in exponential_residual()
128 if (jacobians[1] != NULL) { in exponential_residual()
129 jacobians[1][0] = - exp(m * x + c); // dr/dc in exponential_residual()
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()
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()
Dresidual_block_utils.h58 double** jacobians);
66 double** jacobians);
75 double** jacobians);
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()
Dnumeric_diff_test_utils.cc66 double *jacobians[2] = { &dydx1[0], &dydx2[0] }; in ExpectCostFunctionEvaluationIsNearlyCorrect() local
72 &jacobians[0])); in ExpectCostFunctionEvaluationIsNearlyCorrect()
136 double *jacobians[2] = { &dydx1[0], &dydx2[0] }; in ExpectCostFunctionEvaluationIsNearlyCorrect() local
142 &jacobians[0])); in ExpectCostFunctionEvaluationIsNearlyCorrect()
Dcovariance_test.cc137 double** jacobians) const { in Evaluate()
142 if (jacobians == NULL) { in Evaluate()
146 if (jacobians[0] != NULL) { in Evaluate()
147 copy(jacobian_.begin(), jacobian_.end(), jacobians[0]); in Evaluate()
176 double** jacobians) const { in Evaluate()
181 if (jacobians == NULL) { in Evaluate()
185 if (jacobians[0] != NULL) { in Evaluate()
186 copy(jacobian1_.begin(), jacobian1_.end(), jacobians[0]); in Evaluate()
189 if (jacobians[1] != NULL) { in Evaluate()
190 copy(jacobian2_.begin(), jacobian2_.end(), jacobians[1]); in Evaluate()
/external/ceres-solver/examples/
Dellipse_approximation.cc288 double** jacobians) const { in Evaluate()
302 if (jacobians == NULL) { in Evaluate()
306 if (jacobians[0] != NULL) { in Evaluate()
307 jacobians[0][0] = x[1 + i0][0] - x[1 + i1][0]; in Evaluate()
308 jacobians[0][1] = x[1 + i0][1] - x[1 + i1][1]; in Evaluate()
311 if (jacobians[i + 1] != NULL) { in Evaluate()
312 ceres::MatrixRef(jacobians[i + 1], 2, 2).setZero(); in Evaluate()
314 jacobians[i + 1][0] = -(1.0 - u); in Evaluate()
315 jacobians[i + 1][3] = -(1.0 - u); in Evaluate()
317 jacobians[i + 1][0] = -u; in Evaluate()
[all …]
Dcurve_fitting.c129 double** jacobians) { in exponential_residual() argument
137 if (jacobians == NULL) { in exponential_residual()
140 if (jacobians[0] != NULL) { in exponential_residual()
141 jacobians[0][0] = - x * exp(m * x + c); /* dr/dm */ in exponential_residual()
143 if (jacobians[1] != NULL) { in exponential_residual()
144 jacobians[1][0] = - exp(m * x + c); /* dr/dc */ in exponential_residual()
Dhelloworld_analytic_diff.cc55 double** jacobians) const { in Evaluate()
73 if (jacobians != NULL && jacobians[0] != NULL) { in Evaluate()
74 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()
/external/ceres-solver/include/ceres/
Ddynamic_autodiff_cost_function.h96 double** jacobians) const { in Evaluate() argument
101 if (jacobians == NULL) { in Evaluate()
143 if (jacobians[i] != NULL) { in Evaluate()
199 if (jacobians[i] != NULL) { in Evaluate()
228 if (jacobians[i] != NULL) { in Evaluate()
230 jacobians[i][k * parameter_block_sizes()[i] + j] = in Evaluate()
Ddynamic_numeric_diff_cost_function.h102 double** jacobians) const { in Evaluate() argument
113 if (jacobians == NULL || !status) { in Evaluate()
135 if (jacobians[block] != NULL && in Evaluate()
141 jacobians)) { in Evaluate()
154 double** jacobians) const { in EvaluateJacobianForParameterBlock() argument
166 Map<JacobianMatrix> parameter_jacobian(jacobians[parameter_block], in EvaluateJacobianForParameterBlock()
Dautodiff_cost_function.h204 double** jacobians) const { in Evaluate() argument
205 if (!jacobians) { in Evaluate()
218 jacobians); in Evaluate()
Dnumeric_diff_cost_function.h215 double** jacobians) const { in Evaluate() argument
234 if (jacobians == NULL) { in Evaluate()
272 if (N ## block && jacobians[block] != NULL) { \ in Evaluate()
286 jacobians[block])) { \ in Evaluate()

123