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

Public Types | |
| typedef gsl_root_fsolver_type | type |
| Typedef. More... | |
Public Member Functions | |
| fsolver () | |
| The default constructor is only really useful for assigning to. More... | |
| fsolver (type const *T) | |
| The default constructor creates a new fsolver of type fsolver::type. More... | |
| fsolver (gsl_root_fsolver *v) | |
| Could construct from a gsl_root_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. More... | |
| gsl_root_fsolver * | get () const |
| Get the gsl_root_fsolver. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_root_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_scl &f, double x_lower, double x_upper) |
| C++ version of gsl_root_fsolver_set(). More... | |
| int | iterate () |
| C++ version of gsl_root_fsolver_iterate(). More... | |
| char const * | name () const |
| C++ version of gsl_root_fsolver_name(). More... | |
| double | root () const |
| C++ version of gsl_root_fsolver_root(). More... | |
| double | x_lower () const |
| C++ version of gsl_root_fsolver_x_lower(). More... | |
| double | x_upper () const |
| C++ version of gsl_root_fsolver_x_upper(). More... | |
Static Public Member Functions | |
| static int | set (fsolver &s, function_scl &f, double x_lower, double x_upper) |
| C++ version of gsl_root_fsolver_set(). More... | |
| static int | iterate (fsolver &s) |
| C++ version of gsl_root_fsolver_iterate(). More... | |
| static std::string | name (fsolver const &s) |
| C++ version of gsl_root_fsolver_name(). More... | |
| static double | root (fsolver const &s) |
| C++ version of gsl_root_fsolver_root(). More... | |
| static double | x_lower (fsolver const &s) |
| C++ version of gsl_root_fsolver_x_lower(). More... | |
| static double | x_upper (fsolver const &s) |
| C++ version of gsl_root_fsolver_x_upper(). More... | |
| static type const * | bisection () |
| Static type. More... | |
| static type const * | brent () |
| Static type. More... | |
| static type const * | falsepos () |
| Static type. More... | |
Private Attributes | |
| gsl_root_fsolver * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Workspace for root finding without a derivative.
Also functions as a namespace for fsolver functions. This also allows for functions to be called on fsolver as an object.
| typedef gsl_root_fsolver_type gsl::root::fsolver::type |
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 47 of file roots.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The default constructor creates a new fsolver of type fsolver::type.
| T | The type of the fsolver |
Definition at line 57 of file roots.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
Could construct from a gsl_root_fsolver.
This is not usually a good idea. In this case you should not use gsl_root_fsolver_free() to deallocate the memory.
| v | The fsolver |
Definition at line 73 of file roots.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 84 of file roots.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 103 of file roots.hpp.
References ccgsl_pointer, and count.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
Find if the fsolver is empty.
true if has size zero; otherwise false Definition at line 192 of file roots.hpp.
References ccgsl_pointer.
|
inlinestatic |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_root_fsolver. Definition at line 238 of file roots.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 145 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 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 157 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 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 177 of file roots.hpp.
References ccgsl_pointer.
The assignment operator.
This copies elementwise.
| v | The fsolver to copy |
Definition at line 91 of file roots.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 137 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 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 167 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 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 187 of file roots.hpp.
References ccgsl_pointer.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
Swap two fsolver.
This works even if the fsolver have different sizes because it swaps pointers.
| v | The fsolver to swap with this. |
Definition at line 199 of file roots.hpp.
References ccgsl_pointer, and count.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
private |
The shared pointer.
Definition at line 207 of file roots.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 211 of file roots.hpp.
Referenced by fsolver(), operator=(), swap(), unique(), use_count(), and ~fsolver().