|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Workspace for root finding with a derivative. More...
#include <roots.hpp>

Public Types | |
| typedef gsl_root_fdfsolver_type | type |
| Typedef. More... | |
Public Member Functions | |
| fdfsolver () | |
| The default constructor is only really useful for assigning to. More... | |
| fdfsolver (type const *T) | |
| The default constructor creates a new fdfsolver of one of the type fdfsolver::type. More... | |
| fdfsolver (gsl_root_fdfsolver *v) | |
| Could construct from a gsl_root_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. More... | |
| gsl_root_fdfsolver * | get () const |
| Get the gsl_root_fdfsolver. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_root_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 &fdf, double root) |
| C++ version of gsl_root_fdfsolver_set(). More... | |
| int | iterate () |
| C++ version of gsl_root_fdfsolver_iterate(). More... | |
| char const * | name () |
| C++ version of gsl_root_fdfsolver_name(). More... | |
| double | root () |
| C++ version of gsl_root_fdfsolver_root(). More... | |
Static Public Member Functions | |
| static int | set (fdfsolver &s, function_fdf &fdf, double root) |
| C++ version of gsl_root_fdfsolver_set(). More... | |
| static int | iterate (fdfsolver &s) |
| C++ version of gsl_root_fdfsolver_iterate(). More... | |
| static std::string | name (fdfsolver const &s) |
| C++ version of gsl_root_fdfsolver_name(). More... | |
| static double | root (fdfsolver const &s) |
| C++ version of gsl_root_fdfsolver_root(). More... | |
| static type const * | newton () |
| Static type. More... | |
| static type const * | secant () |
| Static type. More... | |
| static type const * | steffenson () |
| Static type. More... | |
Private Attributes | |
| gsl_root_fdfsolver * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Workspace for root finding with a derivative.
Also functions as a namespace for fdfsolver functions. This also allows for functions to be called on fdfsolver as an object.
| typedef gsl_root_fdfsolver_type gsl::root::fdfsolver::type |
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 385 of file roots.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The default constructor creates a new fdfsolver of one of the type fdfsolver::type.
| T | The fdfsolver type. |
Definition at line 395 of file roots.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
Could construct from a gsl_root_fdfsolver.
This is not usually a good idea. In this case you should not use gsl_root_fdfsolver_free() to deallocate the memory.
| v | The fdfsolver |
Definition at line 411 of file roots.hpp.
References ccgsl_pointer, and count.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The fdfsolver to copy. |
Definition at line 422 of file roots.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 441 of file roots.hpp.
References ccgsl_pointer, and count.
|
inline |
|
inline |
Find if the fdfsolver is empty.
true if has size zero; otherwise false Definition at line 530 of file roots.hpp.
References ccgsl_pointer.
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_root_fdfsolver. Definition at line 576 of file roots.hpp.
References ccgsl_pointer.
|
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 483 of file roots.hpp.
References operator==().
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for eaxmple, 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 495 of file roots.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 eaxmple, 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 515 of file roots.hpp.
References ccgsl_pointer.
Move operator.
| v | The fdfsolver to move. |
Definition at line 462 of file roots.hpp.
References fdfsolver().
The assignment operator.
This copies elementwise.
| v | The fdfsolver to copy |
Definition at line 429 of file roots.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 475 of file roots.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 eaxmple, 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 505 of file roots.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 eaxmple, 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 525 of file roots.hpp.
References ccgsl_pointer.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
Swap two fdfsolver.
This works even if the fdfsolver have different sizes because it swaps pointers.
| v | The fdfsolver to swap with this. |
Definition at line 537 of file roots.hpp.
References ccgsl_pointer, and count.
|
inline |
|
inline |
|
private |
The shared pointer.
Definition at line 545 of file roots.hpp.
Referenced by empty(), fdfsolver(), get(), operator bool(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), swap(), and ~fdfsolver().
|
private |
The shared reference count.
Definition at line 549 of file roots.hpp.
Referenced by fdfsolver(), operator=(), swap(), unique(), use_count(), and ~fdfsolver().