|
Optimist
0.0.0
A C++ library for optimization
|
Classes | |
| class | Epsilon |
Functions | |
| template<typename Real> | |
| Real | SideFiniteDifferences (Real const f_0, Real const f_1, Real const f_2, Real h_1, Real h_2) |
| template<typename Real> | |
| Real | CenteredFiniteDifferences (Real const f_l, Real const f_c, Real const f_r, Real h) |
| template<typename Vector, typename Real = typename Vector::Scalar> | |
| Vector | SideFiniteDifferences (Vector const &f_0, Vector const &f_1, Vector const &f_2, Real h_1, Real h_2) |
| template<typename Vector, typename Real = typename Vector::Scalar> | |
| Vector | CenteredFiniteDifferences (Vector const &f_l, Vector const &f_c, Vector const &f_r, Real h) |
| template<typename Function, typename Vector, typename Real = typename Vector::Scalar> | |
| bool | Gradient (Vector const &x, Function &&function, Vector &out) |
| template<typename Function, typename Vector, typename Matrix, typename Real = typename Vector::Scalar> | |
| bool | Jacobian (Vector const &x, Function &&function, Matrix &out) |
| template<typename Function, typename Vector, typename Matrix, typename Real = typename Vector::Scalar> | |
| bool | Hessian (Vector const &x, Function &&function, Matrix &out) |
|
inline |
|
inline |
Compute centered finite differences (for fixed-size Eigen vectors).
| [in] | f_l | Vector at \( x-h \). |
| [in] | f_c | Vector at \( x \). |
| [in] | f_r | Vector at \( x+h \). |
| [in] | h | Step size. |
| Vector | Fixed-size Eigen vector type. |
| Real | Scalar number type. |
| bool Optimist::FiniteDifferences::Gradient | ( | Vector const & | x, |
| Function && | function, | ||
| Vector & | out ) |
Compute finite differences gradient for a scalar function (for fixed-size Eigen vectors).
| Function | Callable type bool(Vector const &, Real &). |
| Vector | Fixed-size Eigen vector type. |
| Real | Scalar number type. |
| [in] | x | Point at which to compute gradient. |
| [in] | function | Function to differentiate. |
| [out] | out | Gradient vector. |
| bool Optimist::FiniteDifferences::Hessian | ( | Vector const & | x, |
| Function && | function, | ||
| Matrix & | out ) |
Compute finite differences Hessian for a scalar function (for fixed-size Eigen vectors).
| Function | Callable type bool(Vector const &, Real &). |
| Vector | Fixed-size Eigen vector type. |
| Matrix | Fixed-size Eigen matrix type. |
| Real | Scalar number type. |
| [in] | x | Point at which to compute Hessian. |
| [in] | function | Function to differentiate. |
| [out] | out | Hessian matrix. |
| bool Optimist::FiniteDifferences::Jacobian | ( | Vector const & | x, |
| Function && | function, | ||
| Matrix & | out ) |
Compute finite differences Jacobian for a vector function (for fixed-size Eigen vectors).
| Function | Callable type bool(Vector const &, Vector &). |
| Vector | Fixed-size Eigen vector type. |
| Matrix | Fixed-size Eigen matrix type. |
| Real | Scalar number type. |
| [in] | x | Point at which to compute Jacobian. |
| [in] | fun | Function to differentiate. |
| [out] | out | Jacobian matrix. |
|
inline |
|
inline |
Compute one-sided finite differences (for fixed-size Eigen vectors).
| [in] | f_0 | Vector at \( x \). |
| [in] | f_1 | Vector at \( x+h_1 \). |
| [in] | f_2 | Vector at \( x+h_2 \). |
| [in] | h_1 | Step size 1. |
| [in] | h_2 | Step size 2. |
| Vector | Fixed-size Eigen vector type. |
| Real | Scalar number type. |