| 175 | } |
| 176 | |
| 177 | void SetLinearSolver(Solver::Options* options) { |
| 178 | CHECK(StringToLinearSolverType(CERES_GET_FLAG(FLAGS_linear_solver), |
| 179 | &options->linear_solver_type)); |
| 180 | CHECK(StringToPreconditionerType(CERES_GET_FLAG(FLAGS_preconditioner), |
| 181 | &options->preconditioner_type)); |
| 182 | CHECK(StringToSparseLinearAlgebraLibraryType( |
| 183 | CERES_GET_FLAG(FLAGS_sparse_linear_algebra_library), |
| 184 | &options->sparse_linear_algebra_library_type)); |
| 185 | options->use_mixed_precision_solves = |
| 186 | CERES_GET_FLAG(FLAGS_mixed_precision_solves); |
| 187 | options->max_num_refinement_iterations = |
| 188 | CERES_GET_FLAG(FLAGS_max_num_refinement_iterations); |
| 189 | } |
| 190 | |
| 191 | void SetMinimizerOptions(Solver::Options* options) { |
| 192 | options->max_num_iterations = CERES_GET_FLAG(FLAGS_num_iterations); |
no test coverage detected