Home | History | Annotate | Download | only in ceres

Lines Matching refs:Program

37 #include "ceres/program.h"
96 Program program(*problem.mutable_program());
97 EXPECT_TRUE(SolverImpl::RemoveFixedBlocksFromProgram(&program,
101 EXPECT_EQ(program.NumParameterBlocks(), 3);
102 EXPECT_EQ(program.NumResidualBlocks(), 3);
118 Program program(problem.program());
120 EXPECT_TRUE(SolverImpl::RemoveFixedBlocksFromProgram(&program,
124 EXPECT_EQ(program.NumParameterBlocks(), 0);
125 EXPECT_EQ(program.NumResidualBlocks(), 0);
145 Program program(problem.program());
147 EXPECT_TRUE(SolverImpl::RemoveFixedBlocksFromProgram(&program,
151 EXPECT_EQ(program.NumParameterBlocks(), 0);
152 EXPECT_EQ(program.NumResidualBlocks(), 0);
176 Program program(problem.program());
178 EXPECT_TRUE(SolverImpl::RemoveFixedBlocksFromProgram(&program,
182 EXPECT_EQ(program.NumParameterBlocks(), 1);
183 EXPECT_EQ(program.NumResidualBlocks(), 1);
206 Program program(problem.program());
208 EXPECT_TRUE(SolverImpl::RemoveFixedBlocksFromProgram(&program,
212 EXPECT_EQ(program.NumParameterBlocks(), 2);
213 EXPECT_EQ(program.NumResidualBlocks(), 2);
239 Program program(problem.program());
242 ResidualBlock *expected_removed_block = program.residual_blocks()[0];
252 EXPECT_TRUE(SolverImpl::RemoveFixedBlocksFromProgram(&program,
256 EXPECT_EQ(program.NumParameterBlocks(), 2);
257 EXPECT_EQ(program.NumResidualBlocks(), 2);
291 problem.program().residual_blocks();
306 Program* program = problem.mutable_program();
307 program->SetParameterOffsetsAndIndex();
352 // Create the reduced program. This should remove the fixed block "z",
355 scoped_ptr<Program> reduced_program(
359 problem.program().residual_blocks();
422 scoped_ptr<Program> reduced_program(
431 problem.program().residual_blocks();
460 Program program(problem.program());
464 &program,
483 Program* program = problem.mutable_program();
488 program,
490 const vector<ParameterBlock*>& parameter_blocks = program->parameter_blocks();
752 EXPECT_EQ(&x, problem.program().parameter_blocks()[0]->state());
753 EXPECT_EQ(&y, problem.program().parameter_blocks()[1]->state());
754 EXPECT_EQ(&z, problem.program().parameter_blocks()[2]->state());
755 EXPECT_EQ(&w, problem.program().parameter_blocks()[3]->state());
913 Program* program = problem.mutable_program();
914 program->SetParameterOffsetsAndIndex();
917 SolverImpl::CreateJacobianBlockSparsityTranspose(program));
980 Program* program = problem.mutable_program();
981 program->SetParameterOffsetsAndIndex();
984 SolverImpl::CreateJacobianBlockSparsityTranspose(program));