|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
ODE inintial value evolve. More...
#include <odeiv2.hpp>

Public Member Functions | |
| evolve () | |
| The default constructor is only really useful for assigning to. More... | |
| evolve (size_t const dim) | |
| The default constructor creates a new evolve with n elements. More... | |
| evolve (gsl_odeiv2_evolve *v) | |
| Could construct from a gsl_odeiv2_evolve. More... | |
| evolve (evolve const &v) | |
| The copy constructor. More... | |
| evolve & | operator= (evolve const &v) |
| The assignment operator. More... | |
| ~evolve () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| evolve (evolve &&v) | |
| Move constructor. More... | |
| evolve & | operator= (evolve &&v) |
| Move operator. More... | |
| bool | operator== (evolve const &v) const |
| Two evolve are identically equal if their elements are identical. More... | |
| bool | operator!= (evolve const &v) const |
| Two evolve are different if their elements are not identical. More... | |
| bool | operator< (evolve const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (evolve const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (evolve const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (evolve const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | empty () const |
| Find if the evolve is empty. More... | |
| void | swap (evolve &v) |
| Swap two evolve objects. More... | |
| gsl_odeiv2_evolve * | get () const |
| Get the gsl_odeiv2_evolve. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_odeiv2_evolve. More... | |
| size_t | use_count () const |
| Find how many evolve objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| template<typename Y > | |
| int | apply (control &con, step &step, system const &dydt, double &t, double t1, double &h, Y &y) |
| C++ version of gsl_odeiv2_evolve_apply(). More... | |
| template<typename Y > | |
| int | apply_fixed_step (control &con, step &step, system const &dydt, double &t, double const h0, Y &y) |
| C++ version of gsl_odeiv2_evolve_apply_fixed_step(). More... | |
| int | reset () |
| C++ version of gsl_odeiv2_evolve_reset(). More... | |
| int | set_driver (driver const &d) |
| C++ version of gsl_odeiv2_evolve_set_driver(). More... | |
Private Attributes | |
| gsl_odeiv2_evolve * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
ODE inintial value evolve.
Definition at line 763 of file odeiv2.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 768 of file odeiv2.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The default constructor creates a new evolve with n elements.
| dim | The dimension |
Definition at line 778 of file odeiv2.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
Could construct from a gsl_odeiv2_evolve.
This is not usually a good idea. In this case we should not use gsl_odeiv2_evolve_free() to deallocate the memory.
| v | The evolve |
Definition at line 794 of file odeiv2.hpp.
References ccgsl_pointer, and count.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The evolve to copy. |
Definition at line 805 of file odeiv2.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 824 of file odeiv2.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The evolve to move. |
Definition at line 836 of file odeiv2.hpp.
References count.
|
inline |
C++ version of gsl_odeiv2_evolve_apply().
This version allows y to be a gsl::vector (or any object for which data() returns an array of doubles).
| con | The control object |
| step | The step |
| dydt | The system |
| t | The initial time |
| t1 | The maximum time |
| h | The initial step size (also returns next suggested step size) |
| y | The initial position |
Definition at line 994 of file odeiv2.hpp.
References gsl::odeiv2::step::get(), gsl::odeiv2::control::get(), and get().
|
inline |
C++ version of gsl_odeiv2_evolve_apply_fixed_step().
This version allows y to be a gsl::vector (or any object for which data() returns an array of doubles).
| con | The control object |
| step | The step |
| dydt | The system |
| t | The initial time |
| h0 | The initial step size |
| y | The initial position |
Definition at line 1028 of file odeiv2.hpp.
References gsl::odeiv2::step::get(), gsl::odeiv2::control::get(), and get().
|
inline |
Find if the evolve is empty.
true if has size zero; otherwise false Definition at line 913 of file odeiv2.hpp.
References ccgsl_pointer.
|
inline |
Get the gsl_odeiv2_evolve.
Definition at line 939 of file odeiv2.hpp.
References ccgsl_pointer.
Referenced by apply(), apply_fixed_step(), reset(), and set_driver().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_odeiv2_evolve. Definition at line 959 of file odeiv2.hpp.
References ccgsl_pointer.
|
inline |
Two evolve are different if their elements are not identical.
| v | The evolve to be compared with this |
false or true according as this and v have identical elements or not Definition at line 866 of file odeiv2.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 evolve is nonnegative.
| v | The evolve to be compared with this |
false or true according as this is less than v lexicographically Definition at line 878 of file odeiv2.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 evolve is nonnegative.
| v | The evolve to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 898 of file odeiv2.hpp.
References ccgsl_pointer.
Move operator.
| v | The evolve to move. |
Definition at line 845 of file odeiv2.hpp.
References evolve().
The assignment operator.
This copies elementwise.
| v | The evolve to copy |
Definition at line 812 of file odeiv2.hpp.
References ccgsl_pointer, and count.
|
inline |
Two evolve are identically equal if their elements are identical.
| v | The evolve to be compared with this |
true or false according as this and v have identical elements or not Definition at line 858 of file odeiv2.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 evolve is nonnegative.
| v | The evolve to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 888 of file odeiv2.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 evolve is nonnegative.
| v | The evolve to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 908 of file odeiv2.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_odeiv2_evolve_reset().
Definition at line 1037 of file odeiv2.hpp.
References get().
|
inline |
C++ version of gsl_odeiv2_evolve_set_driver().
| d | The driver |
Definition at line 1410 of file odeiv2.hpp.
References get(), and gsl::odeiv2::driver::get().
|
inline |
Swap two evolve objects.
This works even if the evolve have different sizes because it swaps pointers.
| v | The evolve to swap with this. |
Definition at line 920 of file odeiv2.hpp.
References ccgsl_pointer, and count.
|
inline |
Find if this is the only object sharing the gsl_odeiv2_evolve.
true or falses according as this is the only evolve object sharing the gsl_odeiv2_evolve. Definition at line 945 of file odeiv2.hpp.
References count.
|
inline |
Find how many evolve objects share this pointer.
Definition at line 950 of file odeiv2.hpp.
References count.
|
private |
The shared pointer.
Definition at line 928 of file odeiv2.hpp.
Referenced by empty(), evolve(), get(), operator bool(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), swap(), and ~evolve().
|
private |
The shared reference count.
Definition at line 932 of file odeiv2.hpp.
Referenced by evolve(), operator=(), swap(), unique(), use_count(), and ~evolve().