|
gtsam
|
A virtual base class for the preconditioned conjugate gradient solver.
Public Member Functions | |
| PCGSolver (const PCGSolverParameters &p) | |
| Construct a solver with the supplied iteration and preconditioner settings. | |
| VectorValues | optimize (const GaussianFactorGraph &gfg, const KeyInfo &keyInfo, const std::map< Key, Vector > &lambda, const VectorValues &initial) override |
| Solve using explicit key metadata, damping, and an initial estimate. | |
| PCGSolverResult | optimizeDetailed (const GaussianFactorGraph &gfg, bool collectResidualHistory=true) |
| Optimize from zero and return convergence diagnostics and phase timings. | |
| PCGSolverResult | optimizeDetailed (const GaussianFactorGraph &gfg, const KeyInfo &keyInfo, const std::map< Key, Vector > &lambda, const VectorValues &initial, bool collectResidualHistory=true) |
| Optimize with explicit metadata and an initial estimate, returning convergence diagnostics and phase timings. | |
| GTSAM_EXPORT VectorValues | optimize (const GaussianFactorGraph &gfg, const KeyInfo *=nullptr, const std::map< Key, Vector > *lambda=nullptr) |
| GTSAM_EXPORT VectorValues | optimize (const GaussianFactorGraph &gfg, const KeyInfo &keyInfo, const std::map< Key, Vector > &lambda) |
| Public Member Functions inherited from gtsam::IterativeSolver | |
| GTSAM_EXPORT VectorValues | optimize (const GaussianFactorGraph &gfg, const KeyInfo *=nullptr, const std::map< Key, Vector > *lambda=nullptr) |
| GTSAM_EXPORT VectorValues | optimize (const GaussianFactorGraph &gfg, const KeyInfo &keyInfo, const std::map< Key, Vector > &lambda) |
Public Types | |
| typedef IterativeSolver | Base |
| typedef std::shared_ptr< PCGSolver > | shared_ptr |
| Public Types inherited from gtsam::IterativeSolver | |
| typedef std::shared_ptr< IterativeSolver > | shared_ptr |
Protected Attributes | |
| PCGSolverParameters | parameters_ |
| std::shared_ptr< Preconditioner > | preconditioner_ |
| gtsam::PCGSolver::PCGSolver | ( | const PCGSolverParameters & | p | ) |
Construct a solver with the supplied iteration and preconditioner settings.
| p | Settings copied into the solver. |
|
overridevirtual |
Solve using explicit key metadata, damping, and an initial estimate.
| gfg | Gaussian factor graph defining the normal equations. |
| keyInfo | Ordering, dimensions, and scalar offsets for graph keys. |
| lambda | Per-key damping forwarded to the preconditioner. |
| initial | Initial estimate in keyed form. |
Implements gtsam::IterativeSolver.
| PCGSolverResult gtsam::PCGSolver::optimizeDetailed | ( | const GaussianFactorGraph & | gfg, |
| bool | collectResidualHistory = true ) |
Optimize from zero and return convergence diagnostics and phase timings.
Residual history is collected when collectResidualHistory is true.
| gfg | Gaussian factor graph defining the normal equations. |
| collectResidualHistory | Whether to retain per-iteration residuals. |
| PCGSolverResult gtsam::PCGSolver::optimizeDetailed | ( | const GaussianFactorGraph & | gfg, |
| const KeyInfo & | keyInfo, | ||
| const std::map< Key, Vector > & | lambda, | ||
| const VectorValues & | initial, | ||
| bool | collectResidualHistory = true ) |
Optimize with explicit metadata and an initial estimate, returning convergence diagnostics and phase timings.
| gfg | Gaussian factor graph defining the normal equations. |
| keyInfo | Ordering, dimensions, and scalar offsets for graph keys. |
| lambda | Per-key damping forwarded to the preconditioner. |
| initial | Initial estimate in keyed form. |
| collectResidualHistory | Whether to retain per-iteration residuals. |