![]() |
Stan
2.5.0
probability, sampling & optimization
|
#include <bfgs_update.hpp>
Public Types | |
| typedef Eigen::Matrix< Scalar, DimAtCompile, 1 > | VectorT |
| typedef Eigen::Matrix< Scalar, DimAtCompile, DimAtCompile > | HessianT |
Public Member Functions | |
| Scalar | update (const VectorT &yk, const VectorT &sk, bool reset=false) |
| Update the inverse Hessian approximation. More... | |
| void | search_direction (VectorT &pk, const VectorT &gk) const |
| Compute the search direction based on the current (inverse) Hessian approximation and given gradient. More... | |
Definition at line 10 of file bfgs_update.hpp.
| typedef Eigen::Matrix<Scalar,DimAtCompile,DimAtCompile> stan::optimization::BFGSUpdate_HInv< Scalar, DimAtCompile >::HessianT |
Definition at line 13 of file bfgs_update.hpp.
| typedef Eigen::Matrix<Scalar,DimAtCompile,1> stan::optimization::BFGSUpdate_HInv< Scalar, DimAtCompile >::VectorT |
Definition at line 12 of file bfgs_update.hpp.
|
inline |
Compute the search direction based on the current (inverse) Hessian approximation and given gradient.
| [out] | pk | The negative product of the inverse Hessian and gradient direction gk. |
| [in] | gk | Gradient direction. |
Definition at line 56 of file bfgs_update.hpp.
|
inline |
Update the inverse Hessian approximation.
| yk | Difference between the current and previous gradient vector. |
| sk | Difference between the current and previous state vector. |
| reset | Whether to reset the approximation, forgetting about previous values. |
Definition at line 26 of file bfgs_update.hpp.