MCPcopy Create free account
hub / github.com/ceres-solver/ceres-solver / SetLinearSolver

Function SetLinearSolver

examples/denoising.cc:177–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void 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
191void SetMinimizerOptions(Solver::Options* options) {
192 options->max_num_iterations = CERES_GET_FLAG(FLAGS_num_iterations);

Callers 1

SolveProblemFunction · 0.70

Tested by

no test coverage detected