mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
0338f9a8e6
When the Schur complement is of size zero, i.e. none of the parameter blocks interact with each other, the ITERATIVE_SCHUR linear solver crashes due to some checks that are triggered in the SCHUR_JACOBI preconditioner. This patch adds logic to detect this condition and to deal with it and adds tests that verify the fix. Thanks to Soohyun Bae for reporting this bug. Change-Id: If29ddf32463cbb1960414fff0e29bbf0d2ee7989