|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Workspace for one-dimensional minimisation. More...
#include <min.hpp>

Public Types | |
| typedef gsl_min_fminimizer_type | type |
| Typedef. More... | |
Public Member Functions | |
| fminimizer () | |
| The default constructor is only really useful for assigning to. More... | |
| fminimizer (type const *T) | |
| The standard constructor creates a new minimizer of type fminimizer::type. More... | |
| fminimizer (gsl_min_fminimizer *v) | |
| Could construct from a gsl_min_fminimizer. More... | |
| fminimizer (fminimizer const &v) | |
| The copy constructor. More... | |
| fminimizer & | operator= (fminimizer const &v) |
| The assignment operator. More... | |
| ~fminimizer () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| fminimizer (fminimizer &&v) | |
| Move constructor. More... | |
| fminimizer & | operator= (fminimizer &&v) |
| Move operator. More... | |
| bool | operator== (fminimizer const &v) const |
| Two fminimizer are identically equal if their elements are identical. More... | |
| bool | operator!= (fminimizer const &v) const |
| Two fminimizer are different if their elements are not identical. More... | |
| bool | operator< (fminimizer const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (fminimizer const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (fminimizer const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (fminimizer const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | empty () const |
| Find if the fminimizer is empty. More... | |
| void | swap (fminimizer &v) |
| Swap two fminimizer objects. More... | |
| gsl_min_fminimizer * | get () const |
| Get the gsl_min_fminimizer. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_min_fminimizer. More... | |
| size_t | use_count () const |
| Find how many fminimizer objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| int | set (function_scl &f, double x_minimum, double x_lower, double x_upper) |
| C++ version of gsl_min_fminimizer_set(). More... | |
| int | set_with_values (function_scl &f, double x_minimum, double f_minimum, double x_lower, double f_lower, double x_upper, double f_upper) |
| C++ version of gsl_min_fminimizer_set_with_values(). More... | |
| int | iterate () |
| C++ version of gsl_min_fminimizer_iterate(). More... | |
| char const * | name () const |
| C++ version of gsl_min_fminimizer_name(). More... | |
| double | x_minimum () const |
| C++ version of gsl_min_fminimizer_x_minimum(). More... | |
| double | x_lower () |
| C++ version of gsl_min_fminimizer_x_lower(). More... | |
| double | x_upper () const |
| C++ version of gsl_min_fminimizer_x_upper(). More... | |
| double | f_minimum () const |
| C++ version of gsl_min_fminimizer_f_minimum(). More... | |
| double | f_lower () const |
| C++ version of gsl_min_fminimizer_f_lower(). More... | |
| double | f_upper () const |
| C++ version of gsl_min_fminimizer_f_upper(). More... | |
Static Public Member Functions | |
| static int | set (fminimizer &s, function_scl &f, double x_minimum, double x_lower, double x_upper) |
| C++ version of gsl_min_fminimizer_set(). More... | |
| static int | set_with_values (fminimizer &s, function_scl &f, double x_minimum, double f_minimum, double x_lower, double f_lower, double x_upper, double f_upper) |
| C++ version of gsl_min_fminimizer_set_with_values(). More... | |
| static int | iterate (fminimizer &s) |
| C++ version of gsl_min_fminimizer_iterate(). More... | |
| static std::string | name (fminimizer const &s) |
| C++ version of gsl_min_fminimizer_name(). More... | |
| static double | x_minimum (fminimizer const &s) |
| C++ version of gsl_min_fminimizer_x_minimum(). More... | |
| static double | x_lower (fminimizer const &s) |
| C++ version of gsl_min_fminimizer_x_lower(). More... | |
| static double | x_upper (fminimizer const &s) |
| C++ version of gsl_min_fminimizer_x_upper(). More... | |
| static double | f_minimum (fminimizer const &s) |
| C++ version of gsl_min_fminimizer_f_minimum(). More... | |
| static double | f_lower (fminimizer const &s) |
| C++ version of gsl_min_fminimizer_f_lower(). More... | |
| static double | f_upper (fminimizer const &s) |
| C++ version of gsl_min_fminimizer_f_upper(). More... | |
| static type const * | goldensection () |
| Static type. More... | |
| static type const * | brent () |
| Static type. More... | |
| static type const * | quad_golden () |
| Static type. More... | |
Private Attributes | |
| gsl_min_fminimizer * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Workspace for one-dimensional minimisation.
Also acts like a namespace for fminimizer functions. The functions can also be called on an fminimizer object.
| typedef gsl_min_fminimizer_type gsl::min::fminimizer::type |
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 45 of file min.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The standard constructor creates a new minimizer of type fminimizer::type.
| T | The type of the fminimizer |
Definition at line 55 of file min.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
Could construct from a gsl_min_fminimizer.
This is not usually a good idea. In this case you should not use gsl_min_fminimizer_free() to deallocate the memory.
| v | The fminimizer |
Definition at line 71 of file min.hpp.
References ccgsl_pointer, and count.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The fminimizer to copy. |
Definition at line 82 of file min.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 101 of file min.hpp.
References ccgsl_pointer, and count.
|
inline |
|
inlinestatic |
|
inline |
Find if the fminimizer is empty.
true if has size zero; otherwise false Definition at line 190 of file min.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_min_fminimizer_f_lower().
Definition at line 464 of file min.hpp.
References get().
Referenced by set_with_values().
|
inlinestatic |
|
inline |
C++ version of gsl_min_fminimizer_f_minimum().
Definition at line 458 of file min.hpp.
References get().
Referenced by set_with_values().
|
inlinestatic |
|
inline |
C++ version of gsl_min_fminimizer_f_upper().
Definition at line 470 of file min.hpp.
References get().
Referenced by set_with_values().
|
inlinestatic |
|
inline |
Get the gsl_min_fminimizer.
Definition at line 216 of file min.hpp.
References ccgsl_pointer.
Referenced by f_lower(), f_minimum(), f_upper(), iterate(), name(), set(), set_with_values(), x_lower(), x_minimum(), and x_upper().
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_min_fminimizer. Definition at line 236 of file min.hpp.
References ccgsl_pointer.
|
inline |
Two fminimizer are different if their elements are not identical.
| v | The fminimizer to be compared with this |
false or true according as this and v have identical elements or not Definition at line 143 of file min.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 fminimizer is nonnegative.
| v | The fminimizer to be compared with this |
false or true according as this is less than v lexicographically Definition at line 155 of file min.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 fminimizer is nonnegative.
| v | The fminimizer to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 175 of file min.hpp.
References ccgsl_pointer.
|
inline |
Move operator.
| v | The fminimizer to move. |
Definition at line 122 of file min.hpp.
References fminimizer().
|
inline |
The assignment operator.
This copies elementwise.
| v | The fminimizer to copy |
Definition at line 89 of file min.hpp.
References ccgsl_pointer, and count.
|
inline |
Two fminimizer are identically equal if their elements are identical.
| v | The fminimizer to be compared with this |
true or false according as this and v have identical elements or not Definition at line 135 of file min.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 fminimizer is nonnegative.
| v | The fminimizer to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 165 of file min.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 fminimizer is nonnegative.
| v | The fminimizer to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 185 of file min.hpp.
References ccgsl_pointer.
|
inlinestatic |
|
inlinestatic |
C++ version of gsl_min_fminimizer_set().
| s | An fminimizer. |
| f | the function to be minimised. |
| x_minimum | Guess for value of x at which minimum occurs. |
| x_lower | Lower bound of initial search interval. |
| x_upper | Upper bound of initial search interval. |
Definition at line 247 of file min.hpp.
References get(), x_lower(), x_minimum(), and x_upper().
|
inline |
C++ version of gsl_min_fminimizer_set().
| f | the function to be minimised. |
| x_minimum | Guess for value of x at which minimum occurs. |
| x_lower | Lower bound of initial search interval. |
| x_upper | Upper bound of initial search interval. |
Definition at line 375 of file min.hpp.
References get(), x_lower(), x_minimum(), and x_upper().
|
inlinestatic |
C++ version of gsl_min_fminimizer_set_with_values().
| s | An fminimizer. |
| f | the function to be minimised. |
| x_minimum | Guess for value of x at which minimum occurs. |
| f_minimum | Value of f at x_minimum. |
| x_lower | Lower bound of initial search interval. |
| f_lower | Value of f at x_lower. |
| x_upper | Upper bound of initial search interval. |
| f_upper | Value of f at x_upper. |
Definition at line 277 of file min.hpp.
References f_lower(), f_minimum(), f_upper(), get(), x_lower(), x_minimum(), and x_upper().
|
inline |
C++ version of gsl_min_fminimizer_set_with_values().
| f | the function to be minimised. |
| x_minimum | Guess for value of x at which minimum occurs. |
| f_minimum | Value of f at x_minimum. |
| x_lower | Lower bound of initial search interval. |
| f_lower | Value of f at x_lower. |
| x_upper | Upper bound of initial search interval. |
| f_upper | Value of f at x_upper. |
Definition at line 401 of file min.hpp.
References f_lower(), f_minimum(), f_upper(), get(), x_lower(), x_minimum(), and x_upper().
|
inline |
Swap two fminimizer objects.
This works even if the fminimizer have different sizes because it swaps pointers.
| v | The fminimizer to swap with this. |
Definition at line 197 of file min.hpp.
References ccgsl_pointer, and count.
|
inline |
|
inline |
|
inline |
C++ version of gsl_min_fminimizer_x_lower().
Definition at line 446 of file min.hpp.
References get().
Referenced by set(), and set_with_values().
|
inlinestatic |
|
inline |
C++ version of gsl_min_fminimizer_x_minimum().
Definition at line 440 of file min.hpp.
References get().
Referenced by set(), and set_with_values().
|
inlinestatic |
|
inline |
C++ version of gsl_min_fminimizer_x_upper().
Definition at line 452 of file min.hpp.
References get().
Referenced by set(), and set_with_values().
|
inlinestatic |
|
private |
The shared pointer.
Definition at line 205 of file min.hpp.
Referenced by empty(), fminimizer(), get(), operator bool(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), swap(), and ~fminimizer().
|
private |
The shared reference count.
Definition at line 209 of file min.hpp.
Referenced by fminimizer(), operator=(), swap(), unique(), use_count(), and ~fminimizer().