mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix a typo in solver.cc
Change-Id: I3f2e058e2d45c72eaa12129ff0b9366332ee87f5
This commit is contained in:
@@ -195,13 +195,13 @@ bool TrustRegionOptionsAreValid(const Solver::Options& options, string* error) {
|
||||
|
||||
#ifdef CERES_NO_CXSPARSE
|
||||
if (options.sparse_linear_algebra_library_type == CX_SPARSE) {
|
||||
if (options.type == SPARSE_NORMAL_CHOLESKY) {
|
||||
if (options.linear_solver_type == SPARSE_NORMAL_CHOLESKY) {
|
||||
*error = "Can't use SPARSE_NORMAL_CHOLESKY with CX_SPARSE because "
|
||||
"CXSparse was not enabled when Ceres was built.";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (options.type == SPARSE_SCHUR) {
|
||||
if (options.linear_solver_type == SPARSE_SCHUR) {
|
||||
*error = "Can't use SPARSE_SCHUR with CX_SPARSE because "
|
||||
"CXSparse was not enabled when Ceres was built.";
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user