Home
last modified time | relevance | path

Searched refs:block_sizes (Results 1 – 3 of 3) sorted by relevance

/external/ceres-solver/internal/ceres/
Druntime_numeric_diff_cost_function.cc160 const vector<int16>& block_sizes = function_->parameter_block_sizes(); in Evaluate() local
161 CHECK(!block_sizes.empty()); in Evaluate()
164 int parameters_size = accumulate(block_sizes.begin(), block_sizes.end(), 0); in Evaluate()
166 vector<double*> parameters_references_copy(block_sizes.size()); in Evaluate()
168 for (int block = 1; block < block_sizes.size(); ++block) { in Evaluate()
170 + block_sizes[block - 1]; in Evaluate()
174 for (int block = 0; block < block_sizes.size(); ++block) { in Evaluate()
177 block_sizes[block] * sizeof(*parameters[block])); in Evaluate()
180 for (int block = 0; block < block_sizes.size(); ++block) { in Evaluate()
186 block_sizes[block], in Evaluate()
Dgradient_checking_cost_function.cc110 const vector<int16>& block_sizes = function_->parameter_block_sizes(); in Evaluate() local
111 vector<Matrix> term_jacobians(block_sizes.size()); in Evaluate()
112 vector<Matrix> finite_difference_jacobians(block_sizes.size()); in Evaluate()
113 vector<double*> term_jacobian_pointers(block_sizes.size()); in Evaluate()
114 vector<double*> finite_difference_jacobian_pointers(block_sizes.size()); in Evaluate()
115 for (int i = 0; i < block_sizes.size(); i++) { in Evaluate()
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()
144 for (int k = 0; k < block_sizes.size(); k++) { in Evaluate()
/external/ceres-solver/include/ceres/
Dgradient_checker.h122 const vector<int16>& block_sizes = term->parameter_block_sizes(); in Probe() local
123 const int num_blocks = block_sizes.size(); in Probe()
128 CHECK_EQ(N0, block_sizes[0]); in Probe()
134 CHECK_EQ(N1, block_sizes[1]); in Probe()
140 CHECK_EQ(N2, block_sizes[2]); in Probe()
146 CHECK_EQ(N3, block_sizes[3]); in Probe()
152 CHECK_EQ(N4, block_sizes[4]); in Probe()
166 results->term_jacobians[i].resize(num_residuals, block_sizes[i]); in Probe()
169 num_residuals, block_sizes[i]); in Probe()