|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Class that extends gsl_multimin_function_fdf so that it can be constructed from arbitrary function objects. More...
#include <multimin_function_fdf.hpp>


Classes | |
| struct | Concept |
| This is an empty abstract base class. More... | |
Public Member Functions | |
| function_fdf () | |
| The default constructor is only really useful for assigning to. More... | |
| function_fdf (gsl_multimin_function_fdf &v) | |
| Could construct from a gsl_multimin_function_fdf. More... | |
| template<typename T > | |
| function_fdf (T &t) | |
| Construct from an object that implements gsl::multimin::function_fdf::Concept. More... | |
| function_fdf (function_fdf const &v) | |
| The copy constructor. More... | |
| function_fdf & | operator= (function_fdf const &v) |
| The assignment operator. More... | |
| function_fdf (function_fdf &&v) | |
| Move constructor. More... | |
| function_fdf & | operator= (function_fdf &&v) |
| Move operator. More... | |
| ~function_fdf () | |
| The destructor unshares any shared resource. More... | |
Public Attributes | |
| base_F * | function |
| This gives something for params to point to. More... | |
| size_t * | count |
| The shared reference count: used for copying this. More... | |
Friends | |
| template<typename T > | |
| void | function_fdf_constructor (function_fdf &fdf, T &t) |
Class that extends gsl_multimin_function_fdf so that it can be constructed from arbitrary function objects.
Since gsl::multimin::function_fdf is a subclass of gsl_multimin_function_fdf, a pointer to an object of this class can be used whenever a pointer to a gsl_multimin_function_fdf object is required. Thus, pointers to objects of this class can be used directly with the GNU Scientific Library.
You can construct a gsl::multimin::function_fdf object from arbitrary function objects. If the function object is not already implemented, implementing it as a subclass T of gsl::multimin::function_fdf::Concept will make it easy to construct using gsl::multimin::function_fdf<T>(). If the function object uses a single class T that cannot readily be modified, try something like
You can use similar constructions if f, df and fdf are defined in different classes.
This class is designed for flexibility rather than efficient copying. So if objects are to be copied frequently, consider using shared pointers or the like. Moving is defined for C++11.
Definition at line 71 of file multimin_function_fdf.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 200 of file multimin_function_fdf.hpp.
References count, and gsl::multifit::nlinear::df().
|
inlineexplicit |
Could construct from a gsl_multimin_function_fdf.
This constuctor is not actually visible, but gsl::multimin::function_fdf::function_fdf<T>() will construct the object correctly.
| v | The gsl_multimin_function_fdf. |
Definition at line 215 of file multimin_function_fdf.hpp.
References count, gsl::multifit::nlinear::df(), and gsl::rstat::n().
|
inline |
Construct from an object that implements gsl::multimin::function_fdf::Concept.
| t | An object that implements gsl::multimin::function_fdf::Concept. |
Definition at line 233 of file multimin_function_fdf.hpp.
|
inline |
The copy constructor.
This shares f. This constuctor is not actually visible, but gsl::multimin::function_fdf::function_fdf<T>() will construct the object correctly.
| v | The function_fdf to copy. |
Definition at line 245 of file multimin_function_fdf.hpp.
References count, gsl::multifit::nlinear::df(), and gsl::rstat::n().
|
inline |
Move constructor.
| v | The function_fdf to move. |
Definition at line 280 of file multimin_function_fdf.hpp.
References count, gsl::multifit::nlinear::df(), and gsl::rstat::n().
|
inline |
The destructor unshares any shared resource.
Definition at line 308 of file multimin_function_fdf.hpp.
|
inline |
Move operator.
| v | The function_fdf to move. |
Definition at line 294 of file multimin_function_fdf.hpp.
References count, gsl::multifit::nlinear::df(), gsl::multimin::function::function(), and gsl::rstat::n().
|
inline |
The assignment operator.
This makes a shared copy.
| v | The function_fdf to copy |
Definition at line 258 of file multimin_function_fdf.hpp.
References count, gsl::multifit::nlinear::df(), function, and gsl::rstat::n().
|
friend |
| size_t* gsl::multimin::function_fdf::count |
The shared reference count: used for copying this.
Definition at line 195 of file multimin_function_fdf.hpp.
Referenced by function_fdf(), operator=(), and ~function_fdf().
| base_F* gsl::multimin::function_fdf::function |
This gives something for params to point to.
Definition at line 191 of file multimin_function_fdf.hpp.
Referenced by operator=(), and ~function_fdf().