Mantid
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
Mantid::Kernel::Math::SLSQPMinimizer::FunctionWrapper Class Reference

Non-templated wrapper for objective function object to allow it to be stored without templating the class. More...

Classes

class  BaseHolder
 
class  TypeHolder
 

Public Member Functions

double eval (const std::vector< double > &x) const
 Calls user supplied function. More...
 
template<typename T >
 FunctionWrapper (const T &func)
 Construct. More...
 

Public Attributes

std::unique_ptr< BaseHolderm_funcHolder
 Templated holder. More...
 

Detailed Description

Non-templated wrapper for objective function object to allow it to be stored without templating the class.

Definition at line 116 of file SLSQPMinimizer.h.

Constructor & Destructor Documentation

◆ FunctionWrapper()

template<typename T >
Mantid::Kernel::Math::SLSQPMinimizer::FunctionWrapper::FunctionWrapper ( const T &  func)
inline

Construct.

Definition at line 133 of file SLSQPMinimizer.h.

Member Function Documentation

◆ eval()

double Mantid::Kernel::Math::SLSQPMinimizer::FunctionWrapper::eval ( const std::vector< double > &  x) const
inline

Calls user supplied function.

Parameters
x- The current pt
Returns
The value of the function

Definition at line 139 of file SLSQPMinimizer.h.

References Mantid::Geometry::x.

Member Data Documentation

◆ m_funcHolder

std::unique_ptr<BaseHolder> Mantid::Kernel::Math::SLSQPMinimizer::FunctionWrapper::m_funcHolder

Templated holder.

Definition at line 141 of file SLSQPMinimizer.h.


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