|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Workspace for solving multidimensional root finding problems. More...
#include <multiroots.hpp>

Public Types | |
| typedef gsl_multiroot_fdfsolver_type | type |
| Typedef. More... | |
Public Member Functions | |
| fdfsolver () | |
| The default constructor is only really useful for assigning to. More... | |
| fdfsolver (type const *T, size_t const n) | |
| The default constructor creates a new fdfsolver with n elements. More... | |
| fdfsolver (gsl_multiroot_fdfsolver *v) | |
| Could construct from a gsl_multiroot_fdfsolver. More... | |
| fdfsolver (fdfsolver const &v) | |
| The copy constructor. More... | |
| fdfsolver & | operator= (fdfsolver const &v) |
| The assignment operator. More... | |
| ~fdfsolver () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| fdfsolver (fdfsolver &&v) | |
| Move constructor. More... | |
| fdfsolver & | operator= (fdfsolver &&v) |
| Move operator. More... | |
| bool | operator== (fdfsolver const &v) const |
| Two fdfsolver are identically equal if their elements are identical. More... | |
| bool | operator!= (fdfsolver const &v) const |
| Two fdfsolver are different if their elements are not identical. More... | |
| bool | operator< (fdfsolver const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (fdfsolver const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (fdfsolver const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (fdfsolver const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | empty () const |
| Find if the fdfsolver is empty. More... | |
| void | swap (fdfsolver &v) |
| Swap two fdfsolver objects. More... | |
| gsl_multiroot_fdfsolver * | get () const |
| Get the gsl_multiroot_fdfsolver. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_multiroot_fdfsolver. More... | |
| size_t | use_count () const |
| Find how many fdfsolver objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| int | set (function_fdf &f, vector const &x) |
| C++ version of gsl_multiroot_fdfsolver_set(). More... | |
| int | iterate () |
| C++ version of gsl_multiroot_fdfsolver_iterate(). More... | |
| char const * | name () |
| C++ version of gsl_multiroot_fdfsolver_name(). More... | |
| vector const | root () |
| C++ version of gsl_multiroot_fdfsolver_root(). More... | |
| vector const | dx () |
| C++ version of gsl_multiroot_fdfsolver_dx(). More... | |
| vector const | f () |
| C++ version of gsl_multiroot_fdfsolver_f(). More... | |
Static Public Member Functions | |
| static int | set (fdfsolver &s, function_fdf &f, vector const &x) |
| C++ version of gsl_multiroot_fdfsolver_set(). More... | |
| static int | iterate (fdfsolver &s) |
| C++ version of gsl_multiroot_fdfsolver_iterate(). More... | |
| static std::string | name (fdfsolver const &s) |
| C++ version of gsl_multiroot_fdfsolver_name(). More... | |
| static vector | root (fdfsolver const &s) |
| C++ version of gsl_multiroot_fdfsolver_root(). More... | |
| static vector | dx (fdfsolver const &s) |
| C++ version of gsl_multiroot_fdfsolver_dx(). More... | |
| static vector | f (fdfsolver const &s) |
| C++ version of gsl_multiroot_fdfsolver_f(). More... | |
| static type const * | hybridsj () |
| Static type. More... | |
| static type const * | hybridj () |
| Static type. More... | |
| static type const * | newton () |
| Static type. More... | |
| static type const * | gnewton () |
| Static type. More... | |
Private Attributes | |
| gsl_multiroot_fdfsolver * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Workspace for solving multidimensional root finding problems.
Also functions as a namespace for fdfsolver functions. This also allows for functions to be called on fdfsolver as an object.
Definition at line 438 of file multiroots.hpp.
| typedef gsl_multiroot_fdfsolver_type gsl::multiroot::fdfsolver::type |
Typedef.
Definition at line 443 of file multiroots.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 447 of file multiroots.hpp.
|
inlineexplicit |
The default constructor creates a new fdfsolver with n elements.
| T | The fdfsolver type. |
| n | The number of elements in the fdfsolver. |
Definition at line 458 of file multiroots.hpp.
References gsl::rstat::n().
|
inlineexplicit |
Could construct from a gsl_multiroot_fdfsolver.
This is not usually a good idea. In this case we should not use gsl_multiroot_fdfsolver_free() to deallocate the memory.
| v | The fdfsolver |
Definition at line 474 of file multiroots.hpp.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The fdfsolver to copy. |
Definition at line 485 of file multiroots.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 504 of file multiroots.hpp.
|
inline |
|
inline |
C++ version of gsl_multiroot_fdfsolver_dx().
Note that it is this fdfsolver and not the return value that owns the data in the return value.
Definition at line 766 of file multiroots.hpp.
References gsl::rstat::quantile::get().
C++ version of gsl_multiroot_fdfsolver_dx().
Note that it is s and not the return value that owns the data in the return value.
| s | The fdfsolver. |
Definition at line 697 of file multiroots.hpp.
References get().
|
inline |
Find if the fdfsolver is empty.
true if has size zero; otherwise false Definition at line 593 of file multiroots.hpp.
|
inline |
C++ version of gsl_multiroot_fdfsolver_f().
Note that it is this fdfsolver and not the return value that owns the data in the return value.
Definition at line 778 of file multiroots.hpp.
References gsl::rstat::quantile::get().
C++ version of gsl_multiroot_fdfsolver_f().
Note that it is s and not the return value that owns the data in the return value.
| s | The fdfsolver. |
Definition at line 709 of file multiroots.hpp.
References get().
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
C++ version of gsl_multiroot_fdfsolver_iterate().
Definition at line 739 of file multiroots.hpp.
References gsl::rstat::quantile::get().
|
inlinestatic |
C++ version of gsl_multiroot_fdfsolver_iterate().
| s | The fdfsolver. |
Definition at line 667 of file multiroots.hpp.
References get().
|
inline |
C++ version of gsl_multiroot_fdfsolver_name().
Definition at line 746 of file multiroots.hpp.
References gsl::rstat::quantile::get().
|
inlinestatic |
C++ version of gsl_multiroot_fdfsolver_name().
| s | The fdfsolver. |
Definition at line 675 of file multiroots.hpp.
References get().
|
inlinestatic |
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_multiroot_fdfsolver. Definition at line 639 of file multiroots.hpp.
|
inline |
Two fdfsolver are different if their elements are not identical.
| v | The fdfsolver to be compared with this |
false or true according as this and v have identical elements or not Definition at line 546 of file multiroots.hpp.
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for example, for checking, that a fdfsolver is nonnegative.
| v | The fdfsolver to be compared with this |
false or true according as this is less than v lexicographically Definition at line 558 of file multiroots.hpp.
References ccgsl_pointer.
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for example, for checking, that a fdfsolver is nonnegative.
| v | The fdfsolver to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 578 of file multiroots.hpp.
References ccgsl_pointer.
Move operator.
| v | The fdfsolver to move. |
Definition at line 525 of file multiroots.hpp.
References swap().
The assignment operator.
This copies elementwise.
| v | The fdfsolver to copy |
Definition at line 492 of file multiroots.hpp.
References ccgsl_pointer, and count.
|
inline |
Two fdfsolver are identically equal if their elements are identical.
| v | The fdfsolver to be compared with this |
true or false according as this and v have identical elements or not Definition at line 538 of file multiroots.hpp.
References ccgsl_pointer.
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for example, for checking, that a fdfsolver is nonnegative.
| v | The fdfsolver to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 568 of file multiroots.hpp.
References ccgsl_pointer.
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for example, for checking, that a fdfsolver is nonnegative.
| v | The fdfsolver to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 588 of file multiroots.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_multiroot_fdfsolver_root().
Note that it is this fdfsolver and not the return value that owns the data in the return value.
Definition at line 754 of file multiroots.hpp.
References gsl::rstat::quantile::get().
C++ version of gsl_multiroot_fdfsolver_root().
Note that it is s and not the return value that owns the data in the return value.
| s | The fdfsolver. |
Definition at line 685 of file multiroots.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multiroot_fdfsolver_set().
| s | The fdfsolver. |
| f | The function. |
| x | The initial guess of the root. |
Definition at line 659 of file multiroots.hpp.
|
inline |
C++ version of gsl_multiroot_fdfsolver_set().
| f | The function. |
| x | The initial guess of the root. |
Definition at line 732 of file multiroots.hpp.
|
inline |
Swap two fdfsolver objects.
This works even if the fdfsolver have different sizes because it swaps pointers.
| v | The fdfsolver to swap with this. |
Definition at line 600 of file multiroots.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inline |
Find if this is the only object sharing the gsl_multiroot_fdfsolver.
true or falses according as this is the only workspace object sharing the gsl_multiroot_fdfsolver. Definition at line 625 of file multiroots.hpp.
|
inline |
Find how many fdfsolver objects share this pointer.
Definition at line 630 of file multiroots.hpp.
|
private |
The shared pointer.
Definition at line 608 of file multiroots.hpp.
Referenced by fdfsolver(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and swap().
|
private |
The shared reference count.
Definition at line 612 of file multiroots.hpp.
Referenced by fdfsolver(), operator=(), and swap().