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


Classes | |
| struct | Concept |
| This is an empty abstract base class. More... | |
Public Member Functions | |
| function () | |
| The default constructor is only really useful for assigning to. More... | |
| template<typename T > | |
| void | function_constructor (function &, T &) |
| function (gsl_multifit_function &v) | |
| Could construct from a gsl_multifit_function. More... | |
| template<typename T > | |
| function (T &t) | |
| Construct from an object that implements gsl::multifit::function::Concept. More... | |
| function (int(*const f)(gsl::vector const &, gsl::vector &), size_t n) | |
| Construct from a function with no parameters (but with n function values and arguments). More... | |
| function (function const &v) | |
| The copy constructor. More... | |
| function & | operator= (function const &v) |
| The assignment operator. More... | |
| function (function &&v) | |
| Move constructor. More... | |
| function & | operator= (function &&v) |
| Move operator. More... | |
| ~function () | |
| The destructor unshares any shared resource. More... | |
Friends | |
| template<typename T > | |
| void | function_constructor (function &, T &) |
Class that extends gsl_multifit_function so that it can be constructed from arbitrary function objects.
Since gsl::multifit::function is a subclass of gsl_multifit_function, a pointer to an object of this class can be used whenever a pointer to a gsl_multifit_function object is required. Thus, pointers to objects of this class can be used directly with the GNU Scientific Library.
A multifit::function with argument a vector of length n should compute and return n function values. In C++ it is straightforward to set up a class with a member function that implements multifit::function::Concept to get a suitable function object. The multifit::function can then be constructed from a function object of this class.
Definition at line 49 of file multifit_function.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 195 of file multifit_function.hpp.
References gsl::sf::hermite::func(), and gsl::rstat::n().
|
inlineexplicit |
Could construct from a gsl_multifit_function.
This constructor is not actually visible, but gsl::multifit::function<T>() will construct the object correctly.
| v | The gsl_multifit_function. |
Definition at line 213 of file multifit_function.hpp.
References gsl::sf::hermite::func(), and gsl::rstat::n().
|
inline |
Construct from an object that implements gsl::multifit::function::Concept.
| t | An object that implements gsl::multifit::function::Concept. |
Definition at line 230 of file multifit_function.hpp.
|
inline |
Construct from a function with no parameters (but with n function values and arguments).
| f | The function to construct from. |
| n | The number of functions and number of arguments of each. |
Definition at line 236 of file multifit_function.hpp.
References gsl::sf::hermite::func(), and gsl::rstat::n().
|
inline |
The copy constructor.
This shares f. This constructor is not actually visible, but gsl::multifit::function::multifit::function<T>() will construct the object correctly.
| v | The function to copy. |
Definition at line 256 of file multifit_function.hpp.
References gsl::rstat::n().
|
inline |
Move constructor.
| v | The function to move. |
Definition at line 289 of file multifit_function.hpp.
References gsl::rstat::n().
|
inline |
The destructor unshares any shared resource.
Definition at line 315 of file multifit_function.hpp.
References gsl::sf::hermite::func().
| void gsl::multifit::function::function_constructor | ( | function & | , |
| T & | |||
| ) |
Move operator.
| v | The function to move. |
Definition at line 302 of file multifit_function.hpp.
References gsl::sf::hermite::func(), and gsl::rstat::n().
The assignment operator.
This makes a shared copy.
| v | The function to copy |
Definition at line 268 of file multifit_function.hpp.
References gsl::sf::hermite::func(), and gsl::rstat::n().
|
friend |