1. Remove constant_sparsity from LinearSolver::Options. It introduces
unnecessarily complexity in the structure of linear solvers and preconditioners.
This is the first step towards cleaning up the Preconditioner interface.
2. Minor tweaks and cleanups to the various linear solvers.
diff --git a/internal/ceres/implicit_schur_complement_test.cc b/internal/ceres/implicit_schur_complement_test.cc
index e5dd471..9cf17af 100644
--- a/internal/ceres/implicit_schur_complement_test.cc
+++ b/internal/ceres/implicit_schur_complement_test.cc
@@ -83,7 +83,6 @@
const int num_schur_rows = blhs.num_rows();
LinearSolver::Options options;
- options.constant_sparsity = false;
options.num_eliminate_blocks = num_eliminate_blocks_;
options.type = DENSE_SCHUR;
@@ -121,7 +120,7 @@
Vector reference_solution;
ReducedLinearSystemAndSolution(D, &lhs, &rhs, &reference_solution);
- ImplicitSchurComplement isc(num_eliminate_blocks_, false, true);
+ ImplicitSchurComplement isc(num_eliminate_blocks_, true);
isc.Init(*A_, D, b_.get());
int num_sc_cols = lhs.cols();