Newton-CG Optimizer#
The Newton-CG optimizer minimizes the convex function iteratively using its gradient and hessian-product operator.
Operation |
Computational methods |
|
Mathematical Formulation#
Refer to Developer Guide: Newton-CG.
Programming Interface#
All types and functions are declared in the
oneapi::dal::newton_cg
namespace.
Descriptor#
-
template<typename Float = float, typename Method = method::by_default, typename Task = task::by_default>
class descriptor# - Template Parameters:
Constructors
-
descriptor(double tol = 1e-4, std::int64_t maxiter = 100)#
Creates a new instance of the class with the given
tol
andmaxiter
property values.
Properties
-
std::int64_t max_iteration#
The maximum iteration number.
- Getter & Setter
std::int64_t get_max_iteration() const
auto & set_max_iteration(std::int64_t maxiter)
- Invariants
- maxiter >= 0
-
double tolerance#
The convergence tolerance.
- Getter & Setter
double get_tolerance() const
auto & set_tolerance(double tol)
- Invariants
- tol >= 0.0