NeuralEngine
A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes.
NeuralEngine::MachineLearning::MoreThuenteLineSearch< Scalar > Class Template Reference

More Thuente. More...

#include <FgMoreThuenteLineSearch.h>

Inheritance diagram for NeuralEngine::MachineLearning::MoreThuenteLineSearch< Scalar >:
Collaboration diagram for NeuralEngine::MachineLearning::MoreThuenteLineSearch< Scalar >:

Public Member Functions

 MoreThuenteLineSearch ()
 Default constructor. More...
 
void Linesearch (NonlinearObjectiveFunction< Scalar > &objFunc, Scalar &fx, af::array &x, af::array &grad, Scalar &step, const af::array &drt, const af::array &xp) override
 Linesearches. More...
 
 ~MoreThuenteLineSearch ()
 Destructor. More...
 
virtual void Linesearch (NonlinearObjectiveFunction< Scalar > &objFunc, Scalar &fx, af::array &x, af::array &grad, Scalar &step, const af::array &drt, const af::array &xp)=0
 Linesearches. More...
 

Private Member Functions

int cvsrch (NonlinearObjectiveFunction< Scalar > &objFunc, af::array &x, Scalar &f, af::array &g, Scalar &stp, const af::array &s)
 
int cstep (Scalar &stx, Scalar &fx, Scalar &dx, Scalar &sty, Scalar &fy, Scalar &dy, Scalar &stp, Scalar &fp, Scalar &dp, bool &brackt, Scalar &stpmin, Scalar &stpmax, int &info)
 

Detailed Description

template<typename Scalar>
class NeuralEngine::MachineLearning::MoreThuenteLineSearch< Scalar >

More Thuente.

This algorithm is taken from More' and Thuente, "Line search algorithmswith guaranteed sufficient decrease".

HmetalT, 10/06/2019.

Definition at line 42 of file FgMoreThuenteLineSearch.h.

Constructor & Destructor Documentation

◆ MoreThuenteLineSearch()

template<typename Scalar >
NeuralEngine::MachineLearning::MoreThuenteLineSearch< Scalar >::MoreThuenteLineSearch ( )
inline

Default constructor.

Hmetal T, 11/06/2019.

Definition at line 51 of file FgMoreThuenteLineSearch.h.

◆ ~MoreThuenteLineSearch()

Destructor.

Hmetal T, 11/06/2019.

Definition at line 72 of file FgMoreThuenteLineSearch.h.

Member Function Documentation

◆ Linesearch()

template<typename Scalar >
void NeuralEngine::MachineLearning::MoreThuenteLineSearch< Scalar >::Linesearch ( NonlinearObjectiveFunction< Scalar > &  objFunc,
Scalar fx,
af::array &  x,
af::array &  grad,
Scalar step,
const af::array &  drt,
const af::array &  xp 
)
overridevirtual

Linesearches.

Hmetal T, 10/06/2019.

Parameters
xThe af::array to process.
searchDirectionThe search direction.
prob[in,out] The prob.
alpha0The alpha 0.
Returns
A Scalar.

Implements NeuralEngine::MachineLearning::ILineSearch< Scalar >.


The documentation for this class was generated from the following file: