Fix a typo in solver.cc

Change-Id: I3f2e058e2d45c72eaa12129ff0b9366332ee87f5
This commit is contained in:
Sameer Agarwal
2014-05-31 23:04:44 -07:00
parent 99dead5cbf
commit 19dee8d591
+2 -2
View File
@@ -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;