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

Public Types | |
| typedef gsl_multiroot_fsolver_type | type |
| Typedef. More... | |
Public Member Functions | |
| fsolver () | |
| The default constructor is only really useful for assigning to. More... | |
| fsolver (type const *T, size_t const n) | |
| The default constructor creates a new fsolver with n elements. More... | |
| fsolver (gsl_multiroot_fsolver *v) | |
| Could construct from a gsl_multiroot_fsolver. More... | |
| fsolver (fsolver const &v) | |
| The copy constructor. More... | |
| fsolver & | operator= (fsolver const &v) |
| The assignment operator. More... | |
| ~fsolver () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| fsolver (fsolver &&v) | |
| Move constructor. More... | |
| fsolver & | operator= (fsolver &&v) |
| Move operator. More... | |
| bool | operator== (fsolver const &v) const |
| Two fsolver are identically equal if their elements are identical. More... | |
| bool | operator!= (fsolver const &v) const |
| Two fsolver are different if their elements are not identical. More... | |
| bool | operator< (fsolver const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (fsolver const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (fsolver const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (fsolver const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | empty () const |
| Find if the fsolver is empty. More... | |
| void | swap (fsolver &v) |
| Swap two fsolver objects. More... | |
| gsl_multiroot_fsolver * | get () const |
| Get the gsl_multiroot_fsolver. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_multiroot_fsolver. More... | |
| size_t | use_count () const |
| Find how many fsolver objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| int | set (function &f, vector const &x) |
| C++ version of gsl_multiroot_fsolver_set(). More... | |
| int | iterate () |
| C++ version of gsl_multiroot_fsolver_iterate(). More... | |
| char const * | name () |
| C++ version of gsl_multiroot_fsolver_name(). More... | |
| vector const | root () |
| C++ version of gsl_multiroot_fsolver_root(). More... | |
| vector const | dx () |
| C++ version of gsl_multiroot_fsolver_dx(). More... | |
| vector const | f () |
| C++ version of gsl_multiroot_fsolver_f(). More... | |
Static Public Member Functions | |
| static int | set (fsolver &s, function &f, vector const &x) |
| C++ version of gsl_multiroot_fsolver_set(). More... | |
| static int | iterate (fsolver &s) |
| C++ version of gsl_multiroot_fsolver_iterate(). More... | |
| static std::string | name (fsolver const &s) |
| C++ version of gsl_multiroot_fsolver_name(). More... | |
| static vector | root (fsolver const &s) |
| C++ version of gsl_multiroot_fsolver_root(). More... | |
| static vector | dx (fsolver const &s) |
| C++ version of gsl_multiroot_fsolver_dx(). More... | |
| static vector | f (fsolver const &s) |
| C++ version of gsl_multiroot_fsolver_f(). More... | |
| static type const * | dnewton () |
| Static type. More... | |
| static type const * | broyden () |
| Static type. More... | |
| static type const * | hybrid () |
| Static type. More... | |
| static type const * | hybrids () |
| Static type. More... | |
Private Attributes | |
| gsl_multiroot_fsolver * | 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 fsolver functions. This also allows for functions to be called on fsolver as an object.
Definition at line 65 of file multiroots.hpp.
| typedef gsl_multiroot_fsolver_type gsl::multiroot::fsolver::type |
Typedef.
Definition at line 70 of file multiroots.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 74 of file multiroots.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The default constructor creates a new fsolver with n elements.
| T | The fsolver type. |
| n | The number of elements in the fsolver. |
Definition at line 85 of file multiroots.hpp.
References ccgsl_pointer, count, and gsl::rstat::n().
|
inlineexplicit |
Could construct from a gsl_multiroot_fsolver.
This is not usually a good idea. In this case we should not use gsl_multiroot_fsolver_free() to deallocate the memory.
| v | The fsolver |
Definition at line 101 of file multiroots.hpp.
References ccgsl_pointer, and count.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The fsolver to copy. |
Definition at line 112 of file multiroots.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 131 of file multiroots.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The fsolver to move. |
Definition at line 143 of file multiroots.hpp.
References count.
|
inlinestatic |
|
inlinestatic |
|
inline |
C++ version of gsl_multiroot_fsolver_dx().
Note that it is this fsolver and not the return value that owns the data in the return value.
Definition at line 393 of file multiroots.hpp.
References gsl::rstat::quantile::get().
C++ version of gsl_multiroot_fsolver_dx().
Note that it is s and not the return value that owns the data in the return value.
| s | The fsolver. |
Definition at line 324 of file multiroots.hpp.
References get().
|
inline |
Find if the fsolver is empty.
true if has size zero; otherwise false Definition at line 220 of file multiroots.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_multiroot_fsolver_f().
Note that it is this fsolver and not the return value that owns the data in the return value.
Definition at line 405 of file multiroots.hpp.
References gsl::rstat::quantile::get().
C++ version of gsl_multiroot_fsolver_f().
Note that it is s and not the return value that owns the data in the return value.
| s | The fsolver. |
Definition at line 336 of file multiroots.hpp.
References get().
|
inline |
Get the gsl_multiroot_fsolver.
Definition at line 246 of file multiroots.hpp.
References ccgsl_pointer.
|
inlinestatic |
|
inlinestatic |
|
inline |
C++ version of gsl_multiroot_fsolver_iterate().
Definition at line 366 of file multiroots.hpp.
References gsl::rstat::quantile::get().
|
inlinestatic |
C++ version of gsl_multiroot_fsolver_iterate().
| s | The fsolver. |
Definition at line 294 of file multiroots.hpp.
References get().
|
inline |
C++ version of gsl_multiroot_fsolver_name().
Definition at line 373 of file multiroots.hpp.
References gsl::rstat::quantile::get().
|
inlinestatic |
C++ version of gsl_multiroot_fsolver_name().
| s | The fsolver. |
Definition at line 302 of file multiroots.hpp.
References get().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_multiroot_fsolver. Definition at line 266 of file multiroots.hpp.
References ccgsl_pointer.
|
inline |
Two fsolver are different if their elements are not identical.
| v | The fsolver to be compared with this |
false or true according as this and v have identical elements or not Definition at line 173 of file multiroots.hpp.
References operator==().
|
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 fsolver is nonnegative.
| v | The fsolver to be compared with this |
false or true according as this is less than v lexicographically Definition at line 185 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 fsolver is nonnegative.
| v | The fsolver to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 205 of file multiroots.hpp.
References ccgsl_pointer.
Move operator.
| v | The fsolver to move. |
Definition at line 152 of file multiroots.hpp.
References fsolver().
The assignment operator.
This copies elementwise.
| v | The fsolver to copy |
Definition at line 119 of file multiroots.hpp.
References ccgsl_pointer, and count.
|
inline |
Two fsolver are identically equal if their elements are identical.
| v | The fsolver to be compared with this |
true or false according as this and v have identical elements or not Definition at line 165 of file multiroots.hpp.
References ccgsl_pointer.
Referenced by operator!=().
|
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 fsolver is nonnegative.
| v | The fsolver to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 195 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 fsolver is nonnegative.
| v | The fsolver to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 215 of file multiroots.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_multiroot_fsolver_root().
Note that it is this fsolver and not the return value that owns the data in the return value.
Definition at line 381 of file multiroots.hpp.
References gsl::rstat::quantile::get().
C++ version of gsl_multiroot_fsolver_root().
Note that it is s and not the return value that owns the data in the return value.
| s | The fsolver. |
Definition at line 312 of file multiroots.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multiroot_fsolver_set().
| s | The fsolver. |
| f | The function. |
| x | The initial guess of the root. |
Definition at line 286 of file multiroots.hpp.
C++ version of gsl_multiroot_fsolver_set().
| f | The function. |
| x | The initial guess of the root. |
Definition at line 359 of file multiroots.hpp.
|
inline |
Swap two fsolver objects.
This works even if the fsolver have different sizes because it swaps pointers.
| v | The fsolver to swap with this. |
Definition at line 227 of file multiroots.hpp.
References ccgsl_pointer, and count.
|
inline |
Find if this is the only object sharing the gsl_multiroot_fsolver.
true or falses according as this is the only workspace object sharing the gsl_multiroot_fsolver. Definition at line 252 of file multiroots.hpp.
References count.
|
inline |
Find how many fsolver objects share this pointer.
Definition at line 257 of file multiroots.hpp.
References count.
|
private |
The shared pointer.
Definition at line 235 of file multiroots.hpp.
Referenced by empty(), fsolver(), get(), operator bool(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), swap(), and ~fsolver().
|
private |
The shared reference count.
Definition at line 239 of file multiroots.hpp.
Referenced by fsolver(), operator=(), swap(), unique(), use_count(), and ~fsolver().