mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
e9397ad352
CLUSTER_JACOBI and CLUSTER_TRIDIAGONAL preconditioners require a sparse Cholesky factorization library. Previously this code was hard coded to use SuiteSparse. Once SparseCholesky abstraction was introduced, it became possible to use it with Eigen or CXSParse. Unfortunately the old code path that was enforcing the requirement of SuiteSparse was not removed. This change does the following: 1. Remove the SUITE_SPARSE restriction on CLUSTER_TRIDIAGONAL and CLUSTER_JACOBI 2. Redo the checking code to be ifdef free and more general. 3. Add bundle adjustment tests to test these configurations. Thanks to Bjorn Piltz for catching and reporting this bug. Change-Id: I637791f6f8149694b6aa75f6a4b6417398cb9590