/external/ceres-solver/internal/ceres/ |
D | residual_block_test.cc | 96 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 …]
|
D | block_jacobian_writer.cc | 68 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 …]
|
D | compressed_row_jacobian_writer.cc | 53 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 …]
|
D | block_evaluate_preparer.cc | 50 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()
|
D | scratch_evaluate_preparer.cc | 58 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()
|
D | program.cc | 126 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()
|
D | dense_jacobian_writer.h | 77 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()
|
D | gradient_checking_cost_function.cc | 271 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()
|
D | program_evaluator.h | 165 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()
|
D | residual_block_utils_test.cc | 52 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()
|
D | parameter_block_ordering.cc | 99 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()
|
D | coordinate_descent_minimizer.cc | 102 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()
|
D | solver_impl.cc | 603 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()
|
D | problem_impl.cc | 134 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()
|
D | block_evaluate_preparer.h | 60 void Prepare(const ResidualBlock* residual_block,
|
D | scratch_evaluate_preparer.h | 55 void Prepare(const ResidualBlock* residual_block,
|
D | CMakeLists.txt | 73 residual_block.cc 243 CERES_TEST(residual_block)
|
/external/ceres-solver/ |
D | Android.mk | 70 internal/ceres/residual_block.cc \
|
/external/ceres-solver/jni/ |
D | Android.mk.ndk | 139 $(CERES_SRC_PATH)/residual_block.cc \
|