Home | History | Annotate | Download | only in ceres

Lines Matching defs:residual_block

50 #include "ceres/residual_block.h"
158 void ProblemImpl::DeleteBlock(ResidualBlock* residual_block) {
163 residual_block->cost_function() != NULL) {
165 const_cast<CostFunction*>(residual_block->cost_function()));
168 residual_block->loss_function() != NULL) {
170 const_cast<LossFunction*>(residual_block->loss_function()));
172 delete residual_block;
471 void ProblemImpl::RemoveResidualBlock(ResidualBlock* residual_block) {
472 CHECK_NOTNULL(residual_block);
477 residual_block->NumParameterBlocks();
479 residual_block->parameter_blocks()[i]
480 ->RemoveResidualBlock(residual_block);
483 DeleteBlockInVector(program_->mutable_residual_blocks(), residual_block);
504 ResidualBlock* residual_block =
506 const int num_parameter_blocks = residual_block->NumParameterBlocks();
508 if (residual_block->parameter_blocks()[j] == parameter_block) {
509 RemoveResidualBlock(residual_block);