Home | History | Annotate | Download | only in ceres

Lines Matching refs:Options

286   Solver::Options options;
287 options.linear_solver_type = DENSE_SCHUR;
288 options.linear_solver_ordering = ordering;
348 Solver::Options options;
349 options.linear_solver_type = DENSE_SCHUR;
350 options.linear_solver_ordering = ordering;
356 SolverImpl::CreateReducedProgram(&options, &problem, NULL, &error));
417 Solver::Options options;
418 options.linear_solver_type = DENSE_SCHUR;
419 options.linear_solver_ordering = ordering;
423 SolverImpl::CreateReducedProgram(&options, &problem, NULL, &error));
500 Solver::Options options;
501 options.linear_solver_type = SPARSE_NORMAL_CHOLESKY;
503 options.linear_solver_ordering = new ParameterBlockOrdering;
505 EXPECT_FALSE(SolverImpl::CreateLinearSolver(&options, &error));
510 Solver::Options options;
511 options.linear_solver_type = DENSE_QR;
512 options.max_linear_solver_iterations = -1;
514 options.linear_solver_ordering = new ParameterBlockOrdering;
516 EXPECT_EQ(SolverImpl::CreateLinearSolver(&options, &error),
521 Solver::Options options;
522 options.linear_solver_type = DENSE_QR;
523 options.min_linear_solver_iterations = -1;
525 options.linear_solver_ordering = new ParameterBlockOrdering;
527 EXPECT_EQ(SolverImpl::CreateLinearSolver(&options, &error),
532 Solver::Options options;
533 options.linear_solver_type = DENSE_QR;
534 options.min_linear_solver_iterations = 10;
535 options.max_linear_solver_iterations = 5;
536 options.linear_solver_ordering = new ParameterBlockOrdering;
538 EXPECT_EQ(SolverImpl::CreateLinearSolver(&options, &error),
543 Solver::Options options;
544 options.linear_solver_type = DENSE_SCHUR;
545 options.num_linear_solver_threads = 2;
548 options.linear_solver_ordering = new ParameterBlockOrdering;
551 options.linear_solver_ordering->AddElementToGroup(&x, 0);
552 options.linear_solver_ordering->AddElementToGroup(&y, 0);
556 SolverImpl::CreateLinearSolver(&options, &error));
558 EXPECT_EQ(options.linear_solver_type, DENSE_SCHUR);
559 EXPECT_EQ(options.num_linear_solver_threads, 2);
563 Solver::Options options;
564 options.trust_region_strategy_type = DOGLEG;
566 options.linear_solver_ordering = new ParameterBlockOrdering;
568 options.linear_solver_type = ITERATIVE_SCHUR;
569 EXPECT_EQ(SolverImpl::CreateLinearSolver(&options, &error),
572 options.linear_solver_type = CGNR;
573 EXPECT_EQ(SolverImpl::CreateLinearSolver(&options, &error),
578 Solver::Options options;
580 options.linear_solver_type = DENSE_QR;
582 options.linear_solver_ordering = new ParameterBlockOrdering;
584 solver.reset(SolverImpl::CreateLinearSolver(&options, &error));
585 EXPECT_EQ(options.linear_solver_type, DENSE_QR);
588 options.linear_solver_type = DENSE_NORMAL_CHOLESKY;
589 solver.reset(SolverImpl::CreateLinearSolver(&options, &error));
590 EXPECT_EQ(options.linear_solver_type, DENSE_NORMAL_CHOLESKY);
594 options.linear_solver_type = SPARSE_NORMAL_CHOLESKY;
595 options.sparse_linear_algebra_library_type = SUITE_SPARSE;
596 solver.reset(SolverImpl::CreateLinearSolver(&options, &error));
597 EXPECT_EQ(options.linear_solver_type, SPARSE_NORMAL_CHOLESKY);
602 options.linear_solver_type = SPARSE_NORMAL_CHOLESKY;
603 options.sparse_linear_algebra_library_type = CX_SPARSE;
604 solver.reset(SolverImpl::CreateLinearSolver(&options, &error));
605 EXPECT_EQ(options.linear_solver_type, SPARSE_NORMAL_CHOLESKY);
611 options.linear_solver_ordering->AddElementToGroup(&x, 0);
612 options.linear_solver_ordering->AddElementToGroup(&y, 0);
614 options.linear_solver_type = DENSE_SCHUR;
615 solver.reset(SolverImpl::CreateLinearSolver(&options, &error));
616 EXPECT_EQ(options.linear_solver_type, DENSE_SCHUR);
619 options.linear_solver_type = SPARSE_SCHUR;
620 solver.reset(SolverImpl::CreateLinearSolver(&options, &error));
623 EXPECT_TRUE(SolverImpl::CreateLinearSolver(&options, &error) == NULL);
626 EXPECT_EQ(options.linear_solver_type, SPARSE_SCHUR);
629 options.linear_solver_type = ITERATIVE_SCHUR;
630 solver.reset(SolverImpl::CreateLinearSolver(&options, &error));
631 EXPECT_EQ(options.linear_solver_type, ITERATIVE_SCHUR);
663 Problem::Options problem_options;
668 Solver::Options options;
669 options.linear_solver_type = DENSE_QR;
672 options.callbacks.push_back(&callback);
679 SolverImpl::Solve(options, &problem, &summary);
689 options.update_state_every_iteration = true;
691 SolverImpl::Solve(options, &problem, &summary);
730 Problem::Options problem_options;
738 Solver::Options options;
739 options.linear_solver_type = DENSE_QR;
742 SolverImpl::Solve(options, &problem, &summary);
760 Solver::Options options;
762 SolverImpl::Solve(options, &problem_impl, &summary);
769 Solver::Options options;
773 SolverImpl::Solve(options, &problem_impl, &summary);
781 Solver::Options options;
786 SolverImpl::Solve(options, &problem_impl, &summary);
793 Solver::Options options;
795 options.linear_solver_type = DENSE_QR;
796 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
797 EXPECT_EQ(options.linear_solver_type, DENSE_QR);
799 options.linear_solver_type = DENSE_NORMAL_CHOLESKY;
800 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
801 EXPECT_EQ(options.linear_solver_type, DENSE_NORMAL_CHOLESKY);
803 options.linear_solver_type = SPARSE_NORMAL_CHOLESKY;
804 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
805 EXPECT_EQ(options.linear_solver_type, SPARSE_NORMAL_CHOLESKY);
807 options.linear_solver_type = CGNR;
808 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
809 EXPECT_EQ(options.linear_solver_type, CGNR);
811 options.linear_solver_type = DENSE_SCHUR;
812 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
813 EXPECT_EQ(options.linear_solver_type, DENSE_QR);
815 options.linear_solver_type = SPARSE_SCHUR;
816 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
817 EXPECT_EQ(options.linear_solver_type, SPARSE_NORMAL_CHOLESKY);
819 options.linear_solver_type = ITERATIVE_SCHUR;
820 options.preconditioner_type = IDENTITY;
821 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
822 EXPECT_EQ(options.linear_solver_type, CGNR);
823 EXPECT_EQ(options.preconditioner_type, IDENTITY);
825 options.linear_solver_type = ITERATIVE_SCHUR;
826 options.preconditioner_type = JACOBI;
827 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
828 EXPECT_EQ(options.linear_solver_type, CGNR);
829 EXPECT_EQ(options.preconditioner_type, JACOBI);
831 options.linear_solver_type = ITERATIVE_SCHUR;
832 options.preconditioner_type = SCHUR_JACOBI;
833 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
834 EXPECT_EQ(options.linear_solver_type, CGNR);
835 EXPECT_EQ(options.preconditioner_type, JACOBI);
837 options.linear_solver_type = ITERATIVE_SCHUR;
838 options.preconditioner_type = CLUSTER_JACOBI;
839 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
840 EXPECT_EQ(options.linear_solver_type, CGNR);
841 EXPECT_EQ(options.preconditioner_type, JACOBI);
843 options.linear_solver_type = ITERATIVE_SCHUR;
844 options.preconditioner_type = CLUSTER_TRIDIAGONAL;
845 SolverImpl::AlternateLinearSolverForSchurTypeLinearSolver(&options);
846 EXPECT_EQ(options.linear_solver_type, CGNR);
847 EXPECT_EQ(options.preconditioner_type, JACOBI);