mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
04938efe4bedec112083c5ceb227ba004f96bd01
This adds support for removing parameter and residual blocks. There are two modes of operation: in the first, removals of paremeter blocks are expensive, since each remove requires scanning all residual blocks to find ones that depend on the removed parameter. In the other, extra memory is sacrificed to maintain a list of the residuals a parameter block depends on, removing the need to scan. In both cases, removing residual blocks is fast. As a caveat, any removals destroys the ordering of the parameters, so the residuals or jacobian returned from Solver::Solve() is meaningless. There is some debate on the best way to handle this; the details remain for a future change. This also adds some overhead, even in the case that fast removals are not requested: - 1 int32 to each residual, to track its position in the program. - 1 pointer to each parameter, to store the dependent residuals. Change-Id: I71dcac8656679329a15ee7fc12c0df07030c12af
Ceres Solver - A non-linear least squares minimizer ================================================== Please see docs/html/index.html for a tutorial and reference.
Description
Languages
C++
94.4%
CMake
3.8%
Python
0.8%
C
0.5%
Starlark
0.4%