|
|
| SolverDogLeg (const Options &options={}) |
| void | reset () override |
| | Reset the solver state and clear gradient & hessian.
|
|
template<typename X_t, typename AccFunc> |
| bool | Build (const X_t &x, const AccFunc &acc, bool resize_and_clear=true) |
| std::optional< Vector< Scalar, Dims > > | Solve () const override |
| | Solve the linear system dx = -H^-1 * grad, returns nullopt on failure.
|
|
Scalar | TrustRegionRadius () const |
|
| SolverGN (const Options &options={}) |
|
void | InitWith (const Grad_t &g, const H_t &h) |
| | Initialize solver with specific gradient and hessian.
|
|
bool | resize (int dims) |
| | Resize H and grad if needed, return true if they were resized.
|
|
void | clear () |
| | Set gradient and hessian to 0s.
|
|
bool | ResizeIfNeeded (const X_t &x) |
| | Check whether we need to resize the system (gradient), return true if it did.
|
|
Scalar | Evaluate (const X_t &x, const AccFunc &acc, bool save) |
| | Accumulate residuals and return the final error.
|
|
bool | Accumulate (const X_t &x, const AccFunc &acc) |
| | Accumulate residuals and update the gradient, returns true on success.
|
| bool | Build (const X_t &x, const AccFunc &acc_func, bool resize_and_clear=true) |
| std::optional< Vector< Scalar, Dims > > | Solve () const override |
| | Solve the linear system dx = -H^-1 * grad, returns nullopt on failure.
|
| virtual Index | dims () const override |
| Scalar | MaxStdDev (bool use_damped=true) const |
| virtual std::optional< H_t > | Covariance () const |
| | Latest Covariance estimate.
|
|
const H_t & | Hessian () const |
| | Latest, eventually damped Hessian approximation (JtJ).
|
|
const H_t & | H () const |
|
const Grad_t & | Gradient () const |
|
Scalar | GradientNorm () const |
|
Scalar | GradientSquaredNorm () const |
|
| SolverBase (const Options &options={}) |
|
bool | Clamp (Grad_t &g, Scalar minmax) const |
| | Clamp the gradient 'g' to within [-minmax, minmax], if minmax is not 0. Returns true if 'g' was clamped.
|
|
void | NormalizeCost (Cost &cost) |
| | Eventually normalize the cost.
|
|
virtual void | GoodStep (Scalar=0.0f) |
|
virtual void | BadStep (Scalar=0.0f) |
| virtual void | FailedStep () |
| virtual void | Rebuild (bool) |
|
virtual std::string | stateAsString () const |
|
const Cost & | cost () const |