diff options
Diffstat (limited to 'examples/bundle_adjuster.cc')
-rw-r--r-- | examples/bundle_adjuster.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/bundle_adjuster.cc b/examples/bundle_adjuster.cc index c060aed..224ad74 100644 --- a/examples/bundle_adjuster.cc +++ b/examples/bundle_adjuster.cc @@ -84,6 +84,8 @@ DEFINE_string(preconditioner, "jacobi", "Options are: " "cluster_tridiagonal."); DEFINE_string(sparse_linear_algebra_library, "suite_sparse", "Options are: suite_sparse and cx_sparse."); +DEFINE_string(dense_linear_algebra_library, "eigen", + "Options are: eigen and lapack."); DEFINE_string(ordering, "automatic", "Options are: automatic, user."); DEFINE_bool(use_quaternions, false, "If true, uses quaternions to represent " @@ -125,7 +127,10 @@ void SetLinearSolver(Solver::Options* options) { &options->preconditioner_type)); CHECK(StringToSparseLinearAlgebraLibraryType( FLAGS_sparse_linear_algebra_library, - &options->sparse_linear_algebra_library)); + &options->sparse_linear_algebra_library_type)); + CHECK(StringToDenseLinearAlgebraLibraryType( + FLAGS_dense_linear_algebra_library, + &options->dense_linear_algebra_library_type)); options->num_linear_solver_threads = FLAGS_num_threads; } |