Home
last modified time | relevance | path

Searched refs:residual_block (Results 1 – 19 of 19) sorted by relevance

/external/ceres-solver/internal/ceres/
Dresidual_block_test.cc96 ResidualBlock residual_block(&cost_function, NULL, parameters); in TEST() local
99 EXPECT_EQ(&cost_function, residual_block.cost_function()); in TEST()
100 EXPECT_EQ(NULL, residual_block.loss_function()); in TEST()
101 EXPECT_EQ(parameters[0], residual_block.parameter_blocks()[0]); in TEST()
102 EXPECT_EQ(parameters[1], residual_block.parameter_blocks()[1]); in TEST()
103 EXPECT_EQ(parameters[2], residual_block.parameter_blocks()[2]); in TEST()
104 EXPECT_EQ(3, residual_block.NumScratchDoublesForEvaluate()); in TEST()
108 residual_block.Evaluate(&cost, NULL, NULL, scratch); in TEST()
113 residual_block.Evaluate(&cost, residuals, NULL, scratch); in TEST()
137 residual_block.Evaluate(&cost, residuals, jacobian_ptrs, scratch); in TEST()
[all …]
Dblock_jacobian_writer.cc68 ResidualBlock* residual_block = residual_blocks[i]; in BuildJacobianLayout() local
69 const int num_residuals = residual_block->NumResiduals(); in BuildJacobianLayout()
70 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in BuildJacobianLayout()
74 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in BuildJacobianLayout()
96 const ResidualBlock* residual_block = residual_blocks[i]; in BuildJacobianLayout() local
97 const int num_residuals = residual_block->NumResiduals(); in BuildJacobianLayout()
98 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in BuildJacobianLayout()
102 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in BuildJacobianLayout()
171 const ResidualBlock* residual_block = residual_blocks[i]; in CreateJacobian() local
174 row->block.size = residual_block->NumResiduals(); in CreateJacobian()
[all …]
Dcompressed_row_jacobian_writer.cc53 ResidualBlock* residual_block = residual_blocks[i]; in CreateJacobian() local
54 const int num_residuals = residual_block->NumResiduals(); in CreateJacobian()
55 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in CreateJacobian()
57 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateJacobian()
81 const ResidualBlock* residual_block = residual_blocks[i]; in CreateJacobian() local
82 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in CreateJacobian()
89 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateJacobian()
106 const int num_residuals = residual_block->NumResiduals(); in CreateJacobian()
164 const ResidualBlock* residual_block = in Write() local
166 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in Write()
[all …]
Dblock_evaluate_preparer.cc50 void BlockEvaluatePreparer::Prepare(const ResidualBlock* residual_block, in Prepare() argument
56 scratch_evaluate_preparer_.Prepare(residual_block, in Prepare()
67 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in Prepare()
69 if (!residual_block->parameter_blocks()[j]->IsConstant()) { in Prepare()
Dscratch_evaluate_preparer.cc58 void ScratchEvaluatePreparer::Prepare(const ResidualBlock* residual_block, in Prepare() argument
63 int num_residuals = residual_block->NumResiduals(); in Prepare()
64 int num_parameter_blocks = residual_block->NumParameterBlocks(); in Prepare()
67 residual_block->parameter_blocks()[j]; in Prepare()
Dprogram.cc126 ResidualBlock* residual_block = residual_blocks_[i]; in SetParameterOffsetsAndIndex() local
127 for (int j = 0; j < residual_block->NumParameterBlocks(); ++j) { in SetParameterOffsetsAndIndex()
128 residual_block->parameter_blocks()[j]->set_index(-1); in SetParameterOffsetsAndIndex()
190 ResidualBlock* residual_block = residual_blocks_[i]; in MaxDerivativesPerResidualBlock() local
191 int num_parameters = residual_block->NumParameterBlocks(); in MaxDerivativesPerResidualBlock()
193 derivatives += residual_block->NumResiduals() * in MaxDerivativesPerResidualBlock()
194 residual_block->parameter_blocks()[j]->LocalSize(); in MaxDerivativesPerResidualBlock()
Ddense_jacobian_writer.h77 const ResidualBlock* residual_block = in Write() local
79 int num_parameter_blocks = residual_block->NumParameterBlocks(); in Write()
80 int num_residuals = residual_block->NumResiduals(); in Write()
84 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in Write()
Dgradient_checking_cost_function.cc271 ResidualBlock* residual_block = residual_blocks[i]; in CreateGradientCheckingProblemImpl() local
279 for (int j = 0; j < residual_block->NumParameterBlocks(); ++j) { in CreateGradientCheckingProblemImpl()
280 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in CreateGradientCheckingProblemImpl()
283 extra_info += (j < residual_block->NumParameterBlocks() - 1) ? ", " : "]"; in CreateGradientCheckingProblemImpl()
288 CreateGradientCheckingCostFunction(residual_block->cost_function(), in CreateGradientCheckingProblemImpl()
299 const_cast<LossFunction*>(residual_block->loss_function()), in CreateGradientCheckingProblemImpl()
Dprogram_evaluator.h165 const ResidualBlock* residual_block = program_->residual_blocks()[i]; in Evaluate() local
176 preparer->Prepare(residual_block, in Evaluate()
185 if (!residual_block->Evaluate( in Evaluate()
210 int num_residuals = residual_block->NumResiduals(); in Evaluate()
211 int num_parameter_blocks = residual_block->NumParameterBlocks(); in Evaluate()
214 residual_block->parameter_blocks()[j]; in Evaluate()
Dresidual_block_utils_test.cc52 ResidualBlock residual_block(&cost_function, in CheckEvaluation() local
57 new double[residual_block.NumScratchDoublesForEvaluate()]); in CheckEvaluation()
64 EXPECT_EQ(residual_block.Evaluate(&cost, in CheckEvaluation()
Dparameter_block_ordering.cc99 const ResidualBlock* residual_block = residual_blocks[i]; in CreateHessianGraph() local
100 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in CreateHessianGraph()
102 residual_block->parameter_blocks(); in CreateHessianGraph()
Dcoordinate_descent_minimizer.cc102 ResidualBlock* residual_block = residual_blocks[i]; in Init() local
103 const int num_parameter_blocks = residual_block->NumParameterBlocks(); in Init()
105 ParameterBlock* parameter_block = residual_block->parameter_blocks()[j]; in Init()
109 residual_blocks_[it->second].push_back(residual_block); in Init()
Dsolver_impl.cc603 ResidualBlock* residual_block = (*residual_blocks)[i]; in RemoveFixedBlocksFromProgram() local
604 int num_parameter_blocks = residual_block->NumParameterBlocks(); in RemoveFixedBlocksFromProgram()
610 ParameterBlock* parameter_block = residual_block->parameter_blocks()[k]; in RemoveFixedBlocksFromProgram()
623 if (!residual_block->Evaluate( in RemoveFixedBlocksFromProgram()
934 int MinParameterBlock(const ResidualBlock* residual_block, in MinParameterBlock() argument
937 for (int i = 0; i < residual_block->NumParameterBlocks(); ++i) { in MinParameterBlock()
938 ParameterBlock* parameter_block = residual_block->parameter_blocks()[i]; in MinParameterBlock()
966 ResidualBlock* residual_block = (*residual_blocks)[i]; in LexicographicallyOrderResidualBlocks() local
967 int position = MinParameterBlock(residual_block, num_eliminate_blocks); in LexicographicallyOrderResidualBlocks()
Dproblem_impl.cc134 ResidualBlock* residual_block = program_->residual_blocks_[i]; in ~ProblemImpl() local
141 const_cast<CostFunction*>(residual_block->cost_function())); in ~ProblemImpl()
145 const_cast<LossFunction*>(residual_block->loss_function())); in ~ProblemImpl()
148 delete residual_block; in ~ProblemImpl()
Dblock_evaluate_preparer.h60 void Prepare(const ResidualBlock* residual_block,
Dscratch_evaluate_preparer.h55 void Prepare(const ResidualBlock* residual_block,
DCMakeLists.txt73 residual_block.cc
243 CERES_TEST(residual_block)
/external/ceres-solver/
DAndroid.mk70 internal/ceres/residual_block.cc \
/external/ceres-solver/jni/
DAndroid.mk.ndk139 $(CERES_SRC_PATH)/residual_block.cc \