Home | History | Annotate | Download | only in ceres

Lines Matching refs:evaluator

34 #include "ceres/evaluator.h"
69 // evaluator into the "local" jacobian. In the tests, the "subset
96 Evaluator* CreateEvaluator(Program* program) {
101 VLOG(1) << "Creating evaluator with type: " << GetParam().first
103 Evaluator::Options options;
107 return Evaluator::Create(options, program, &error);
117 scoped_ptr<Evaluator> evaluator(
130 scoped_ptr<SparseMatrix> jacobian(evaluator->CreateJacobian());
132 ASSERT_EQ(expected_num_rows, evaluator->NumResiduals());
133 ASSERT_EQ(expected_num_cols, evaluator->NumEffectiveParameters());
137 vector<double> state(evaluator->NumParameters());
139 ASSERT_TRUE(evaluator->Evaluate(
163 // Try all combinations of parameters for the evaluator.
225 // At one point the compressed row evaluator had a bug that went undetected
505 scoped_ptr<Evaluator> evaluator(CreateEvaluator(problem.mutable_program()));
506 scoped_ptr<SparseMatrix> jacobian(evaluator->CreateJacobian());
508 EXPECT_FALSE(evaluator->Evaluate(state, &cost, NULL, NULL, NULL));
538 // Simple cost function used to check if the evaluator is sensitive to
563 TEST(Evaluator, EvaluatorRespectsParameterChanges) {
574 Evaluator::Options options;
578 scoped_ptr<Evaluator> evaluator(Evaluator::Create(options, program, &error));
579 scoped_ptr<SparseMatrix> jacobian(evaluator->CreateJacobian());
596 ASSERT_TRUE(evaluator->Evaluate(state, &cost, NULL, NULL, NULL));
604 ASSERT_TRUE(evaluator->Evaluate(state, &cost, residuals, NULL, NULL));
615 ASSERT_TRUE(evaluator->Evaluate(state,