|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Class that extends gsl_multiroot_function so that it can be constructed from arbitrary function objects. More...
#include <multiroot_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... | |
| function (gsl_multiroot_function &v) | |
| Could construct from a gsl_multiroot_function. More... | |
| template<typename T > | |
| function (T &t) | |
| Construct from an object that implements gsl::multiroot::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... | |
Public Attributes | |
| base_F * | func |
| 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_constructor (function &, T &) |
Class that extends gsl_multiroot_function so that it can be constructed from arbitrary function objects.
Since gsl::multiroot::function is a subclass of gsl_multiroot_function, a pointer to an object of this class can be used whenever a pointer to a gsl_multiroot_function object is required. Thus, pointers to objects of this class can be used directly with the GNU Scientific Library.
A multiroot::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 multiroot::function::Concept to get a suitable function object. The multiroot::function can then be constructed from a function object of this class.
Definition at line 53 of file multiroot_function.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 256 of file multiroot_function.hpp.
References count, func, and gsl::rstat::n().
|
inlineexplicit |
Could construct from a gsl_multiroot_function.
This constructor is not actually visible, but gsl::multiroot::function<T>() will construct the object correctly.
| v | The gsl_multiroot_function. |
Definition at line 271 of file multiroot_function.hpp.
References count, func, and gsl::rstat::n().
|
inline |
Construct from an object that implements gsl::multiroot::function::Concept.
| t | An object that implements gsl::multiroot::function::Concept. |
Definition at line 287 of file multiroot_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 293 of file multiroot_function.hpp.
References count, func, and gsl::rstat::n().
|
inline |
The copy constructor.
This shares f. This constructor is not actually visible, but gsl::multiroot::function::multiroot::function<T>() will construct the object correctly.
| v | The function to copy. |
Definition at line 312 of file multiroot_function.hpp.
References count, and gsl::rstat::n().
|
inline |
Move constructor.
| v | The function to move. |
Definition at line 343 of file multiroot_function.hpp.
References count, and gsl::rstat::n().
|
inline |
The destructor unshares any shared resource.
Definition at line 367 of file multiroot_function.hpp.
Move operator.
| v | The function to move. |
Definition at line 355 of file multiroot_function.hpp.
References count, func, and gsl::rstat::n().
The assignment operator.
This makes a shared copy.
| v | The function to copy |
Definition at line 323 of file multiroot_function.hpp.
References count, func, and gsl::rstat::n().
|
friend |
| size_t* gsl::multiroot::function::count |
The shared reference count: used for copying this.
Definition at line 251 of file multiroot_function.hpp.
Referenced by function(), operator=(), and ~function().
| base_F* gsl::multiroot::function::func |
This gives something for params to point to.
Definition at line 247 of file multiroot_function.hpp.
Referenced by function(), operator=(), and ~function().