aimstil  5.0.5
til::SmartFixedStep< TFunctor > Class Template Reference

Try a fix step, but if it doesn't minimize the criteria, use only a fraction of the step and start all over again. More...

#include <cathier/minTools.h>

Inheritance diagram for til::SmartFixedStep< TFunctor >:
Collaboration diagram for til::SmartFixedStep< TFunctor >:

Public Types

typedef TFunctor::argument_type input_type
 
typedef value_type_of< input_type >::type input_prec
 
typedef TFunctor::result_type output_prec
 

Public Member Functions

 SmartFixedStep (TFunctor functor, input_prec stepsize, input_prec coeff=input_prec(0.5))
 
output_prec operator() (input_type &p, const input_type &dir)
 

Detailed Description

template<typename TFunctor>
class til::SmartFixedStep< TFunctor >

Try a fix step, but if it doesn't minimize the criteria, use only a fraction of the step and start all over again.

Definition at line 310 of file minTools.h.

Member Typedef Documentation

◆ input_prec

template<typename TFunctor >
typedef value_type_of<input_type>::type til::SmartFixedStep< TFunctor >::input_prec

Definition at line 315 of file minTools.h.

◆ input_type

template<typename TFunctor >
typedef TFunctor::argument_type til::SmartFixedStep< TFunctor >::input_type

Definition at line 314 of file minTools.h.

◆ output_prec

template<typename TFunctor >
typedef TFunctor::result_type til::SmartFixedStep< TFunctor >::output_prec

Definition at line 316 of file minTools.h.

Constructor & Destructor Documentation

◆ SmartFixedStep()

template<typename TFunctor >
til::SmartFixedStep< TFunctor >::SmartFixedStep ( TFunctor  functor,
input_prec  stepsize,
input_prec  coeff = input_prec(0.5) 
)
inline

Definition at line 320 of file minTools.h.

Member Function Documentation

◆ operator()()

template<typename TFunctor >
output_prec til::SmartFixedStep< TFunctor >::operator() ( input_type p,
const input_type dir 
)
inline

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