|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Workspace for Chebyshev series. More...
#include <chebyshev.hpp>

Public Member Functions | |
| series () | |
| The default constructor is only really useful for assigning to. More... | |
| series (size_t const order) | |
| The default constructor creates a new series with n elements. More... | |
| series (gsl_cheb_series *v) | |
| Could construct from a gsl_cheb_series. More... | |
| series (series const &v) | |
| The copy constructor. More... | |
| series & | operator= (series const &v) |
| The assignment operator. More... | |
| ~series () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| series (series &&v) | |
| Move constructor. More... | |
| series & | operator= (series &&v) |
| Move operator. More... | |
| bool | operator== (series const &v) const |
| Two series are identically equal if their elements are identical. More... | |
| bool | operator!= (series const &v) const |
| Two series are different if their elements are not identical. More... | |
| bool | operator< (series const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (series const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (series const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (series const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | empty () const |
| Find if the series is empty. More... | |
| void | swap (series &v) |
| Swap two series objects. More... | |
| gsl_cheb_series * | get () const |
| Get the gsl_cheb_series. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_cheb_series. More... | |
| size_t | use_count () const |
| Find how many series objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| int | init (function_scl const &func, double const a, double const b) |
| C++ version of gsl_cheb_init(). More... | |
| int | init (gsl_function const *func, double const a, double const b) |
| C++ version of gsl_cheb_init(). More... | |
Private Attributes | |
| gsl_cheb_series * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Workspace for Chebyshev series.
Definition at line 36 of file chebyshev.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 41 of file chebyshev.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The default constructor creates a new series with n elements.
| order | The order of the series |
Definition at line 51 of file chebyshev.hpp.
References ccgsl_pointer, count, and gsl::cheb::order().
|
inlineexplicit |
Could construct from a gsl_cheb_series.
This is not usually a good idea. In this case we should not use gsl_cheb_free() to deallocate the memory.
| v | The series |
Definition at line 67 of file chebyshev.hpp.
References ccgsl_pointer, and count.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The series to copy. |
Definition at line 78 of file chebyshev.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 97 of file chebyshev.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The series to move. |
Definition at line 109 of file chebyshev.hpp.
References count.
|
inline |
Find if the series is empty.
true if has size zero; otherwise false Definition at line 186 of file chebyshev.hpp.
References ccgsl_pointer.
|
inline |
Get the gsl_cheb_series.
Definition at line 212 of file chebyshev.hpp.
References ccgsl_pointer.
Referenced by gsl::cheb::calc_deriv(), gsl::cheb::calc_integ(), gsl::cheb::coeffs(), gsl::cheb::eval(), gsl::cheb::eval_err(), gsl::cheb::eval_mode(), gsl::cheb::eval_mode_e(), gsl::cheb::eval_n(), gsl::cheb::eval_n_err(), init(), gsl::cheb::init(), gsl::cheb::order(), and gsl::cheb::size().
|
inline |
C++ version of gsl_cheb_init().
| func | A gsl::function_scl |
| a | The lower interval point |
| b | The upper interval point |
Definition at line 241 of file chebyshev.hpp.
References gsl::sf::mathieu::a(), gsl::sf::mathieu::b(), gsl::sf::hermite::func(), and get().
|
inline |
C++ version of gsl_cheb_init().
| func | A gsl_function or gsl::function_scl pointer |
| a | The lower interval point |
| b | The upper interval point |
Definition at line 250 of file chebyshev.hpp.
References gsl::sf::mathieu::a(), gsl::sf::mathieu::b(), gsl::sf::hermite::func(), and get().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_cheb_series. Definition at line 232 of file chebyshev.hpp.
References ccgsl_pointer.
|
inline |
Two series are different if their elements are not identical.
| v | The series to be compared with this |
false or true according as this and v have identical elements or not Definition at line 139 of file chebyshev.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 series is nonnegative.
| v | The series to be compared with this |
false or true according as this is less than v lexicographically Definition at line 151 of file chebyshev.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 series is nonnegative.
| v | The series to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 171 of file chebyshev.hpp.
References ccgsl_pointer.
Move operator.
| v | The series to move. |
Definition at line 118 of file chebyshev.hpp.
References series().
The assignment operator.
This copies elementwise.
| v | The series to copy |
Definition at line 85 of file chebyshev.hpp.
References ccgsl_pointer, and count.
|
inline |
Two series are identically equal if their elements are identical.
| v | The series to be compared with this |
true or false according as this and v have identical elements or not Definition at line 131 of file chebyshev.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 series is nonnegative.
| v | The series to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 161 of file chebyshev.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 series is nonnegative.
| v | The series to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 181 of file chebyshev.hpp.
References ccgsl_pointer.
|
inline |
Swap two series objects.
This works even if the series have different sizes because it swaps pointers.
| v | The series to swap with this. |
Definition at line 193 of file chebyshev.hpp.
References ccgsl_pointer, and count.
|
inline |
Find if this is the only object sharing the gsl_cheb_series.
true or falses according as this is the only series object sharing the gsl_cheb_series. Definition at line 218 of file chebyshev.hpp.
References count.
|
inline |
Find how many series objects share this pointer.
Definition at line 223 of file chebyshev.hpp.
References count.
|
private |
The shared pointer.
Definition at line 201 of file chebyshev.hpp.
Referenced by empty(), get(), operator bool(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), series(), swap(), and ~series().
|
private |
The shared reference count.
Definition at line 205 of file chebyshev.hpp.
Referenced by operator=(), series(), swap(), unique(), use_count(), and ~series().