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

Public Member Functions | |
| fminimizer () | |
| The default constructor is only really useful for assigning to. More... | |
| fminimizer (type const *T, size_t const n) | |
| The default constructor creates a new fminimizer with n elements. More... | |
| fminimizer (gsl_multimin_fminimizer *v) | |
| Could construct from a gsl_multimin_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_multimin_fminimizer * | 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 fminimizer objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| int | set (multimin::function &f, vector const &x, vector const &step_size) |
| C++ version of gsl_multimin_fminimizer_set(). More... | |
| int | set (gsl_multimin_function *f, vector const &x, vector const &step_size) |
| C++ version of gsl_multimin_fminimizer_set(). More... | |
| char const * | name () |
| C++ version of gsl_multimin_fminimizer_name(). More... | |
| int | iterate () |
| C++ version of gsl_multimin_fminimizer_iterate(). More... | |
| vector | x () |
| C++ version of gsl_multimin_fminimizer_x(). More... | |
| double | minimum () |
| C++ version of gsl_multimin_fminimizer_minimum(). More... | |
| double | size () |
| C++ version of gsl_multimin_fminimizer_size(). More... | |
Static Public Member Functions | |
| static int | set (fminimizer &s, multimin::function &f, vector const &x, vector const &step_size) |
| C++ version of gsl_multimin_fminimizer_set(). More... | |
| static int | set (fminimizer &s, gsl_multimin_function *f, vector const &x, vector const &step_size) |
| C++ version of gsl_multimin_fminimizer_set(). More... | |
| static char const * | name (fminimizer const &s) |
| C++ version of gsl_multimin_fminimizer_name(). More... | |
| static int | iterate (fminimizer &s) |
| C++ version of gsl_multimin_fminimizer_iterate(). More... | |
| static vector | x (fminimizer const &s) |
| C++ version of gsl_multimin_fminimizer_x(). More... | |
| static double | minimum (fminimizer const &s) |
| C++ version of gsl_multimin_fminimizer_minimum(). More... | |
| static double | size (fminimizer const &s) |
| C++ version of gsl_multimin_fminimizer_size(). More... | |
| static type const * | nmsimplex () |
| Static type. More... | |
| static type const * | nmsimplex2 () |
| Static type. More... | |
| static type const * | nmsimplex2rand () |
| Static type. More... | |
Private Types | |
| typedef gsl_multimin_fminimizer_type | type |
| Typedef. More... | |
Private Attributes | |
| gsl_multimin_fminimizer * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Workspace for fminimizer.
Also functions as a namespace for fminimizer functions. This also allows for functions to be called on fminimizer as an object.
Definition at line 54 of file multimin.hpp.
|
private |
Typedef.
Definition at line 58 of file multimin.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 63 of file multimin.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The default constructor creates a new fminimizer with n elements.
| T | The type of the fminimizer |
| n | The number of elements in the fminimizer (dimension of the function) |
Definition at line 74 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 fminimizer |
Definition at line 90 of file multimin.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 101 of file multimin.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 120 of file multimin.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The fminimizer to move. |
Definition at line 132 of file multimin.hpp.
References count.
|
inline |
Find if the fminimizer is empty.
true if has size zero; otherwise false Definition at line 209 of file multimin.hpp.
References ccgsl_pointer.
|
inline |
Get the gsl_multimin_fminimizer.
Definition at line 235 of file multimin.hpp.
References ccgsl_pointer.
Referenced by iterate(), minimum(), name(), set(), size(), and x().
|
inline |
C++ version of gsl_multimin_fminimizer_iterate().
Definition at line 349 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fminimizer_iterate().
| s | The fminimizer. |
Definition at line 293 of file multimin.hpp.
References get().
|
inline |
C++ version of gsl_multimin_fminimizer_minimum().
Definition at line 364 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fminimizer_minimum().
| s | The fminimizer. |
Definition at line 311 of file multimin.hpp.
References get().
|
inline |
C++ version of gsl_multimin_fminimizer_name().
Definition at line 344 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fminimizer_name().
| s | The fminimizer. |
Definition at line 285 of file multimin.hpp.
References get().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_multimin_fminimizer. Definition at line 255 of file multimin.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 162 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 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 174 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 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 194 of file multimin.hpp.
References ccgsl_pointer.
|
inline |
Move operator.
| v | The fminimizer to move. |
Definition at line 141 of file multimin.hpp.
References fminimizer().
|
inline |
The assignment operator.
This copies elementwise.
| v | The fminimizer to copy |
Definition at line 108 of file multimin.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 154 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 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 184 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 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 204 of file multimin.hpp.
References ccgsl_pointer.
|
inlinestatic |
C++ version of gsl_multimin_fminimizer_set().
| s | The fminimizer. |
| f | The function. |
| x | The initial starting point. |
| step_size | The size of the first trial step. |
Definition at line 276 of file multimin.hpp.
References gsl::vector::get(), get(), and x().
|
inlinestatic |
C++ version of gsl_multimin_fminimizer_set().
| s | The fminimizer. |
| f | The function. |
| x | The initial starting point. |
| step_size | The size of the first trial step. |
Definition at line 265 of file multimin.hpp.
References gsl::vector::get(), get(), and x().
|
inline |
C++ version of gsl_multimin_fminimizer_set().
| f | The function. |
| x | The initial starting point. |
| step_size | The size of the first trial step. |
Definition at line 338 of file multimin.hpp.
References gsl::vector::get(), get(), and x().
|
inline |
C++ version of gsl_multimin_fminimizer_set().
| f | The function. |
| x | The initial starting point. |
| step_size | The size of the first trial step. |
Definition at line 329 of file multimin.hpp.
References gsl::vector::get(), get(), and x().
|
inline |
C++ version of gsl_multimin_fminimizer_size().
Definition at line 371 of file multimin.hpp.
References get().
|
inlinestatic |
C++ version of gsl_multimin_fminimizer_size().
| s | The fminimizer. |
Definition at line 320 of file multimin.hpp.
References get().
|
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 216 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 241 of file multimin.hpp.
References count.
|
inline |
Find how many fminimizer objects share this pointer.
Definition at line 246 of file multimin.hpp.
References count.
|
inline |
C++ version of gsl_multimin_fminimizer_x().
Definition at line 355 of file multimin.hpp.
References get(), and gsl::vector::wrap_gsl_vector_without_ownership().
Referenced by set().
|
inlinestatic |
C++ version of gsl_multimin_fminimizer_x().
| s | The fminimizer. |
Definition at line 301 of file multimin.hpp.
References get(), and gsl::vector::wrap_gsl_vector_without_ownership().
|
private |
The shared pointer.
Definition at line 224 of file multimin.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 228 of file multimin.hpp.
Referenced by fminimizer(), operator=(), swap(), unique(), use_count(), and ~fminimizer().