Lines Matching refs:Program
52 #include "ceres/program.h"
67 StateUpdatingCallback(Program* program, double* parameters)
68 : program_(program), parameters_(parameters) {}
79 Program* program_;
215 Program* program,
239 StateUpdatingCallback updating_callback(program, parameters);
277 Program* program,
299 StateUpdatingCallback updating_callback(program, parameters);
347 Program* original_program = original_problem_impl->mutable_program();
457 // Create the three objects needed to minimize: the transformed program, the
459 scoped_ptr<Program> reduced_program(CreateReducedProgram(&options,
495 // Ensure the program state is set to the user parameters on the way out.
596 // Ensure the program state is set to the user parameters on the way
628 Program* original_program = original_problem_impl->mutable_program();
807 // Create the three objects needed to minimize: the transformed program, the
809 scoped_ptr<Program> reduced_program(CreateReducedProgram(&options,
840 // Ensure the program state is set to the user parameters on the way out.
890 // Ensure the program state is set to the user parameters on the way out.
917 const Program& program = problem_impl->program();
918 const vector<ParameterBlock*>& parameter_blocks = program.parameter_blocks();
932 const vector<ResidualBlock*>& residual_blocks = program.residual_blocks();
972 bool SolverImpl::RemoveFixedBlocksFromProgram(Program* program,
977 program->mutable_parameter_blocks();
982 new double[program->MaxScratchDoublesNeededForEvaluate()]);
996 program->mutable_residual_blocks();
1038 program->mutable_parameter_blocks();
1051 if (!(((program->NumResidualBlocks() == 0) &&
1052 (program->NumParameterBlocks() == 0)) ||
1053 ((program->NumResidualBlocks() != 0) &&
1054 (program->NumParameterBlocks() != 0)))) {
1062 Program* SolverImpl::CreateReducedProgram(Solver::Options* options,
1067 Program* original_program = problem_impl->mutable_program();
1068 scoped_ptr<Program> transformed_program(new Program(*original_program));
1104 // the program and the ordering, there are no more parameter blocks
1292 << "Did you forget to call Program::SetParameterOffsetsAndIndex()? "
1301 // Reorder the residuals for program, if necessary, so that the residuals
1306 Program* program,
1315 vector<ResidualBlock*>* residual_blocks = program->mutable_residual_blocks();
1380 swap(*program->mutable_residual_blocks(), reordered_residual_blocks);
1387 Program* program,
1399 return Evaluator::Create(evaluator_options, program, error);
1404 const Program& program,
1420 ComputeRecursiveIndependentSetOrdering(program,
1433 program.residual_blocks())) {
1444 if (!inner_iteration_minimizer->Init(program,
1493 Program* program,
1495 const int num_parameter_blocks = program->NumParameterBlocks();
1506 program->mutable_parameter_blocks();
1536 const Program* program) {
1540 new TripletSparseMatrix(program->NumParameterBlocks(),
1541 program->NumResidualBlocks(),
1542 10 * program->NumResidualBlocks());
1548 const vector<ResidualBlock*>& residual_blocks = program->residual_blocks();
1587 Program* program,
1598 ComputeStableSchurOrdering(*program, &schur_ordering);
1600 CHECK_EQ(schur_ordering.size(), program->NumParameterBlocks())
1613 swap(*program->mutable_parameter_blocks(), schur_ordering);
1619 program,
1632 *(program->mutable_parameter_blocks());
1646 program->SetParameterOffsetsAndIndex();
1649 SolverImpl::CreateJacobianBlockSparsityTranspose(program));
1662 for (int i = 0; i < program->NumParameterBlocks(); ++i) {
1668 program->SetParameterOffsetsAndIndex();
1674 program,
1681 Program* program,
1684 program->SetParameterOffsetsAndIndex();
1687 SolverImpl::CreateJacobianBlockSparsityTranspose(program));
1689 vector<int> ordering(program->NumParameterBlocks(), 0);
1691 *(program->mutable_parameter_blocks());
1760 for (int i = 0; i < program->NumParameterBlocks(); ++i) {
1764 program->SetParameterOffsetsAndIndex();