|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Workspace for fdfminimizer. More...
#include <multimin.hpp>

Public Member Functions | |
| fdfminimizer () | |
| The default constructor is only really useful for assigning to. More... | |
| fdfminimizer (type const *T, size_t const n) | |
| The default constructor creates a new fdfminimizer with n elements. More... | |
| fdfminimizer (gsl_multimin_fdfminimizer *v) | |
| Could construct from a gsl_multimin_fminimizer. More... | |
| fdfminimizer (fdfminimizer const &v) | |
| The copy constructor. More... | |
| fdfminimizer & | operator= (fdfminimizer const &v) |
| The assignment operator. More... | |
| ~fdfminimizer () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| fdfminimizer (fdfminimizer &&v) | |
| Move constructor. More... | |
| fdfminimizer & | operator= (fdfminimizer &&v) |
| Move operator. More... | |
| bool | operator== (fdfminimizer const &v) const |
| Two fdfminimizer are identically equal if their elements are identical. More... | |
| bool | operator!= (fdfminimizer const &v) const |
| Two fdfminimizer are different if their elements are not identical. More... | |
| bool | operator< (fdfminimizer const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (fdfminimizer const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (fdfminimizer const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (fdfminimizer const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | empty () const |
| Find if the fdfminimizer is empty. More... | |
| void | swap (fdfminimizer &v) |
| Swap two fdfminimizer objects. More... | |
| gsl_multimin_fdfminimizer * | get () const |
| Get the gsl_multimin_fminimizer. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_multimin_fminimizer. More... | |
| size_t | use_count () const |
| Find how many fdfminimizer objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| int | set (function_fdf *fdf, vector const &x, double step_size, double tol) |
| C++ version of gsl_multimin_fdfminimizer_set(). More... | |
| int | set (function_fdf &fdf, vector const &x, double step_size, double tol) |
| C++ version of gsl_multimin_fdfminimizer_set(). More... | |
| char const * | name () |
| C++ version of gsl_multimin_fdfminimizer_name(). More... | |
| int | iterate () |
| C++ version of gsl_multimin_fdfminimizer_iterate(). More... | |
| int | restart () |
| C++ version of gsl_multimin_fdfminimizer_restart(). More... | |
| vector | x () |
| C++ version of gsl_multimin_fdfminimizer_x(). More... | |
| vector | dx () |
| C++ version of gsl_multimin_fdfminimizer_dx(). More... | |
| vector | gradient () |
| C++ version of gsl_multimin_fdfminimizer_gradient(). More... | |
| double | minimum () |
| C++ version of gsl_multimin_fdfminimizer_minimum(). More... | |
Static Public Member Functions | |
| static int | set (fdfminimizer &s, function_fdf *fdf, vector const &x, double step_size, double tol) |
| C++ version of gsl_multimin_fdfminimizer_set(). More... | |
| static int | set (fdfminimizer &s, function_fdf &fdf, vector const &x, double step_size, double tol) |
| C++ version of gsl_multimin_fdfminimizer_set(). More... | |
| static char const * | name (fdfminimizer const &s) |
| C++ version of gsl_multimin_fdfminimizer_name(). More... | |
| static int | iterate (fdfminimizer &s) |
| C++ version of gsl_multimin_fdfminimizer_iterate(). More... | |
| static int | restart (fdfminimizer &s) |
| C++ version of gsl_multimin_fdfminimizer_restart(). More... | |
| static vector | x (fdfminimizer const &s) |
| C++ version of gsl_multimin_fdfminimizer_x(). More... | |
| static vector | dx (fdfminimizer const &s) |
| C++ version of gsl_multimin_fdfminimizer_dx(). More... | |
| static vector | gradient (fdfminimizer const &s) |
| C++ version of gsl_multimin_fdfminimizer_gradient(). More... | |
| static double | minimum (fdfminimizer const &s) |
| C++ version of gsl_multimin_fdfminimizer_minimum(). More... | |
| static type const * | steepest_descent () |
| Static type. More... | |
| static type const * | conjugate_pr () |
| Static type. More... | |
| static type const * | conjugate_fr () |
| Static type. More... | |
| static type const * | vector_bfgs () |
| Static type. More... | |
| static type const * | vector_bfgs2 () |
| Static type. More... | |
Private Types | |
| typedef gsl_multimin_fdfminimizer_type | type |
| Typedef. More... | |
Private Attributes | |
| gsl_multimin_fdfminimizer * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Workspace for fdfminimizer.
Also functions as a namespace for fdfminimizer functions. This also allows for functions to be called on fminimizer as an object.
Definition at line 419 of file multimin.hpp.
|
private |
Typedef.
Definition at line 423 of file multimin.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 428 of file multimin.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The default constructor creates a new fdfminimizer with n elements.
| T | The type of the fminimizer |
| n | The number of elements in the fdfminimizer |
Definition at line 439 of file multimin.hpp.
References ccgsl_pointer, count, and gsl::rstat::n().
|
inlineexplicit |
Could construct from a gsl_multimin_fminimizer.
This is not usually a good idea. In this case we should not use gsl_multimin_fminimizer_free() to deallocate the memory.
| v | The fdfminimizer |
Definition at line 455 of file multimin.hpp.
References ccgsl_pointer, and count.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The fdfminimizer to copy. |
Definition at line 466 of file multimin.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 485 of file multimin.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The fdfminimizer to move. |
Definition at line 497 of file multimin.hpp.
References count.
|
inlinestatic |
|
inlinestatic |
|
inline |
C++ version of gsl_multimin_fdfminimizer_dx().
Definition at line 769 of file multimin.hpp.
References get(), and gsl::vector::wrap_gsl_vector_without_ownership().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_dx().
| s | An fdfminimizer |
Definition at line 687 of file multimin.hpp.
References get(), and gsl::vector::wrap_gsl_vector_without_ownership().
|
inline |
Find if the fdfminimizer is empty.
true if has size zero; otherwise false Definition at line 574 of file multimin.hpp.
References ccgsl_pointer.
|
inline |
Get the gsl_multimin_fminimizer.
Definition at line 600 of file multimin.hpp.
References ccgsl_pointer.
Referenced by dx(), gradient(), iterate(), minimum(), name(), restart(), set(), and x().
|
inline |
C++ version of gsl_multimin_fdfminimizer_gradient().
Definition at line 779 of file multimin.hpp.
References get(), and gsl::vector::wrap_gsl_vector_without_ownership().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_gradient().
| s | An fdfminimizer |
Definition at line 698 of file multimin.hpp.
References get(), and gsl::vector::wrap_gsl_vector_without_ownership().
|
inline |
C++ version of gsl_multimin_fdfminimizer_iterate().
Definition at line 745 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_iterate().
| s | An fdfminimizer |
Definition at line 660 of file multimin.hpp.
References get().
|
inline |
C++ version of gsl_multimin_fdfminimizer_minimum().
Definition at line 789 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_minimum().
| s | An fdfminimizer |
Definition at line 709 of file multimin.hpp.
References get().
|
inline |
C++ version of gsl_multimin_fdfminimizer_name().
Definition at line 739 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_name().
| s | An fdfminimizer |
Definition at line 652 of file multimin.hpp.
References get().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_multimin_fminimizer. Definition at line 620 of file multimin.hpp.
References ccgsl_pointer.
|
inline |
Two fdfminimizer are different if their elements are not identical.
| v | The fdfminimizer to be compared with this |
false or true according as this and v have identical elements or not Definition at line 527 of file multimin.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 fdfminimizer is nonnegative.
| v | The fdfminimizer to be compared with this |
false or true according as this is less than v lexicographically Definition at line 539 of file multimin.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 fdfminimizer is nonnegative.
| v | The fdfminimizer to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 559 of file multimin.hpp.
References ccgsl_pointer.
|
inline |
Move operator.
| v | The fdfminimizer to move. |
Definition at line 506 of file multimin.hpp.
References fdfminimizer().
|
inline |
The assignment operator.
This copies elementwise.
| v | The fdfminimizer to copy |
Definition at line 473 of file multimin.hpp.
References ccgsl_pointer, and count.
|
inline |
Two fdfminimizer are identically equal if their elements are identical.
| v | The fdfminimizer to be compared with this |
true or false according as this and v have identical elements or not Definition at line 519 of file multimin.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 fdfminimizer is nonnegative.
| v | The fdfminimizer to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 549 of file multimin.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 fdfminimizer is nonnegative.
| v | The fdfminimizer to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 569 of file multimin.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_multimin_fdfminimizer_restart().
Definition at line 752 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_restart().
| s | An fdfminimizer |
Definition at line 668 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_set().
| s | An fdfminimizer |
| fdf | An fdfunction |
| x | A vector argument |
| step_size | The step size |
| tol | The tolerance of the line search method |
Definition at line 643 of file multimin.hpp.
References gsl::vector::get(), get(), and x().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_set().
| s | An fdfminimizer |
| fdf | An fdfunction |
| x | A vector argument |
| step_size | The step size |
| tol | The tolerance of the line search method |
Definition at line 631 of file multimin.hpp.
References gsl::vector::get(), get(), and x().
|
inline |
C++ version of gsl_multimin_fdfminimizer_set().
| fdf | An fdfunction |
| x | A vector argument |
| step_size | The step size |
| tol | The tolerance of the line search method |
Definition at line 731 of file multimin.hpp.
References gsl::vector::get(), get(), and x().
|
inline |
C++ version of gsl_multimin_fdfminimizer_set().
| fdf | An fdfunction |
| x | A vector argument |
| step_size | The step size |
| tol | The tolerance of the line search method |
Definition at line 720 of file multimin.hpp.
References gsl::vector::get(), get(), and x().
|
inlinestatic |
|
inline |
Swap two fdfminimizer objects.
This works even if the fdfminimizer have different sizes because it swaps pointers.
| v | The fdfminimizer to swap with this. |
Definition at line 581 of file multimin.hpp.
References ccgsl_pointer, and count.
|
inline |
Find if this is the only object sharing the gsl_multimin_fminimizer.
true or falses according as this is the only workspace object sharing the gsl_multimin_fminimizer. Definition at line 606 of file multimin.hpp.
References count.
|
inline |
Find how many fdfminimizer objects share this pointer.
Definition at line 611 of file multimin.hpp.
References count.
|
inlinestatic |
|
inlinestatic |
|
inline |
C++ version of gsl_multimin_fdfminimizer_x().
Definition at line 759 of file multimin.hpp.
References get(), and gsl::vector::wrap_gsl_vector_without_ownership().
Referenced by set().
|
inlinestatic |
C++ version of gsl_multimin_fdfminimizer_x().
| s | An fdfminimizer |
Definition at line 676 of file multimin.hpp.
References get(), and gsl::vector::wrap_gsl_vector_without_ownership().
|
private |
The shared pointer.
Definition at line 589 of file multimin.hpp.
Referenced by empty(), fdfminimizer(), get(), operator bool(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), swap(), and ~fdfminimizer().
|
private |
The shared reference count.
Definition at line 593 of file multimin.hpp.
Referenced by fdfminimizer(), operator=(), swap(), unique(), use_count(), and ~fdfminimizer().