mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
5742b7d0f1
The outer product computation logic in SparseNormalCholeskySolver does not work well with dynamic sparsity. The overhead of computing the sparsity pattern of the normal equations is only amortized if the sparsity is constant. If the sparsity can change from call to call SparseNormalCholeskySolver will actually be more expensive. For Eigen and for CXSparse we now explicitly compute the normal equations using their respective matrix-matrix product routines and solve. Change-Id: Ifbd8ed78987cdf71640e66ed69500442526a23d4