|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Workspace for acceleration. More...
#include <interp.hpp>

Public Member Functions | |
| accel () | |
| The default constructor creates a new accel. More... | |
| accel (gsl_interp_accel *v) | |
| Could construct from a gsl_interp_accel. More... | |
| accel (accel const &v) | |
| The copy constructor. More... | |
| accel & | operator= (accel const &v) |
| The assignment operator. More... | |
| ~accel () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| accel (accel &&v) | |
| Move constructor. More... | |
| accel & | operator= (accel &&v) |
| Move operator. More... | |
| bool | operator== (accel const &v) const |
| Two accel are identically equal if their elements are identical. More... | |
| bool | operator!= (accel const &v) const |
| Two accel are different if their elements are not identical. More... | |
| bool | operator< (accel const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (accel const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (accel const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (accel const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | empty () const |
| Find if the accel is empty. More... | |
| void | swap (accel &v) |
| Swap two accel objects. More... | |
| gsl_interp_accel * | get () const |
| Get the gsl_interp_accel. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_interp_accel. More... | |
| size_t | use_count () const |
| Find how many accel objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| int | reset () |
| C++ version of gsl_interp_accel_reset(). More... | |
| size_t | find (double const xa[], size_t len, double x) |
| C++ version of gsl_interp_accel_find(). More... | |
| template<typename XA > | |
| size_t | find (XA const &xa, double x) |
| C++ version of gsl_interp_accel_find(). More... | |
Private Attributes | |
| gsl_interp_accel * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Workspace for acceleration.
Definition at line 237 of file interp.hpp.
|
inline |
The default constructor creates a new accel.
Definition at line 244 of file interp.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
Could construct from a gsl_interp_accel.
This is not usually a good idea. In this case we should not use gsl_interp_accel_free() to deallocate the memory.
| v | The accel |
Definition at line 260 of file interp.hpp.
References ccgsl_pointer, and count.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The accel to copy. |
Definition at line 271 of file interp.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 290 of file interp.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The accel to move. |
Definition at line 302 of file interp.hpp.
References count.
|
inline |
Find if the accel is empty.
true if has size zero; otherwise false Definition at line 379 of file interp.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_interp_accel_find().
| xa[] | an array |
| len | the size of the array |
| x | the element to find |
Definition at line 439 of file interp.hpp.
References get().
|
inline |
C++ version of gsl_interp_accel_find().
This version handles std::vector and gsl::vector.
| xa | an array |
| x | the element to find |
Definition at line 449 of file interp.hpp.
References get().
|
inline |
Get the gsl_interp_accel.
Definition at line 405 of file interp.hpp.
References ccgsl_pointer.
Referenced by gsl::spline2d::eval(), gsl::interp2d::eval(), gsl::spline2d::eval_deriv_x(), gsl::interp2d::eval_deriv_x(), gsl::spline2d::eval_deriv_x_e(), gsl::interp2d::eval_deriv_x_e(), gsl::spline2d::eval_deriv_xx(), gsl::interp2d::eval_deriv_xx(), gsl::spline2d::eval_deriv_xx_e(), gsl::interp2d::eval_deriv_xx_e(), gsl::spline2d::eval_deriv_xy(), gsl::interp2d::eval_deriv_xy(), gsl::spline2d::eval_deriv_xy_e(), gsl::interp2d::eval_deriv_xy_e(), gsl::spline2d::eval_deriv_y(), gsl::interp2d::eval_deriv_y(), gsl::spline2d::eval_deriv_y_e(), gsl::interp2d::eval_deriv_y_e(), gsl::spline2d::eval_deriv_yy(), gsl::interp2d::eval_deriv_yy(), gsl::spline2d::eval_deriv_yy_e(), gsl::interp2d::eval_deriv_yy_e(), gsl::spline2d::eval_e(), gsl::interp2d::eval_e(), gsl::interp2d::eval_e_extrap(), gsl::spline2d::eval_extrap(), gsl::interp2d::eval_extrap(), gsl::spline2d::eval_extrap_e(), gsl::spline::eval_integ(), gsl::interp::eval_integ(), gsl::spline::eval_integ_e(), gsl::interp::eval_integ_e(), find(), and reset().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_interp_accel. Definition at line 425 of file interp.hpp.
References ccgsl_pointer.
|
inline |
Two accel are different if their elements are not identical.
| v | The accel to be compared with this |
false or true according as this and v have identical elements or not Definition at line 332 of file interp.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 accel is nonnegative.
| v | The accel to be compared with this |
false or true according as this is less than v lexicographically Definition at line 344 of file interp.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 accel is nonnegative.
| v | The accel to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 364 of file interp.hpp.
References ccgsl_pointer.
Move operator.
| v | The accel to move. |
Definition at line 311 of file interp.hpp.
References accel().
The assignment operator.
This copies elementwise.
| v | The accel to copy |
Definition at line 278 of file interp.hpp.
References ccgsl_pointer, and count.
|
inline |
Two accel are identically equal if their elements are identical.
| v | The accel to be compared with this |
true or false according as this and v have identical elements or not Definition at line 324 of file interp.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 accel is nonnegative.
| v | The accel to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 354 of file interp.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 accel is nonnegative.
| v | The accel to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 374 of file interp.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_interp_accel_reset().
Definition at line 431 of file interp.hpp.
References get().
|
inline |
Swap two accel objects.
This works even if the accel have different sizes because it swaps pointers.
| v | The accel to swap with this. |
Definition at line 386 of file interp.hpp.
References ccgsl_pointer, and count.
|
inline |
Find if this is the only object sharing the gsl_interp_accel.
true or falses according as this is the only accel object sharing the gsl_interp_accel. Definition at line 411 of file interp.hpp.
References count.
|
inline |
Find how many accel objects share this pointer.
Definition at line 416 of file interp.hpp.
References count.
|
private |
The shared pointer.
Definition at line 394 of file interp.hpp.
Referenced by accel(), empty(), get(), operator bool(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), swap(), and ~accel().
|
private |
The shared reference count.
Definition at line 398 of file interp.hpp.
Referenced by accel(), operator=(), swap(), unique(), use_count(), and ~accel().