|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
This class handles vector_long objects as shared handles. More...
#include <vector_long.hpp>


Classes | |
| class | const_iterator_t |
| A class template for the const iterators. More... | |
| class | iterator_base |
| The container must have iterator types. More... | |
| class | iterator_t |
| A class template for the two non-const iterators. More... | |
Public Types | |
| typedef long | value_type |
| A container must have a value_type. More... | |
| typedef value_type & | reference |
| A container must have a reference type. More... | |
| typedef value_type const & | const_reference |
| A container must have a constant reference type. More... | |
| typedef value_type * | pointer |
| A container must have a pointer type. More... | |
| typedef value_type const * | const_pointer |
| A container must have a constant pointer type. More... | |
| typedef const_iterator_t< false > | const_iterator |
| The const_iterator type. More... | |
| typedef iterator_t< false > | iterator |
| The iterator type. More... | |
| typedef const_iterator_t< true > | const_reverse_iterator |
| The const_reverse_t type. More... | |
| typedef iterator_t< true > | reverse_iterator |
| The reverse_iterator type. More... | |
| typedef const_iterator::difference_type | difference_type |
| A container must have a difference_type. More... | |
| typedef size_t | size_type |
| A container must have a size_type. More... | |
Public Member Functions | |
| vector_long () | |
| The default constructor is only really useful for assigning to. More... | |
| vector_long (size_t const n) | |
| The default constructor creates a new vector_long with n elements. More... | |
| vector_long (gsl_vector_long *v) | |
| Could construct from a gsl_vector_long. More... | |
| vector_long (std::initializer_list< long > initializer_list) | |
| Could construct from a std::initializer_list in C++11. More... | |
| vector_long (vector_long const &v) | |
| The copy constructor. More... | |
| vector_long (vector_long &v) | |
| The copy constructor. More... | |
| vector_long & | operator= (vector_long const &v) |
| The assignment operator. More... | |
| template<typename V > | |
| vector_long (V &v, size_t const stride=1) | |
| Construct from an object that implements data() and size(). More... | |
| vector_long | clone () const |
| The clone function. More... | |
| ~vector_long () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| void | wrap_gsl_vector_long_without_ownership (gsl_vector_long *v) |
| This function is intended mainly for internal use. More... | |
| bool | operator== (vector_long const &v) const |
| Two vector_long objects are identically equal if their elements are identical. More... | |
| void | reset () |
| Stop sharing ownership of the shared pointer. More... | |
| vector_long (vector_long &&v) | |
| Move constructor. More... | |
| vector_long & | operator= (vector_long &&v) |
| Move operator. More... | |
| bool | operator!= (vector_long const &v) const |
| Two vector_long objects are different equal if their elements are not identical. More... | |
| bool | operator< (vector_long const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (vector_long const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (vector_long const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (vector_long const &v) const |
| A container needs to define an ordering for sorting. More... | |
| iterator | begin () |
| Get iterator pointing to first vector_long element. More... | |
| const_iterator | begin () const |
| Get iterator pointing to first vector_long element. More... | |
| iterator | end () |
| Get iterator pointing beyond last vector_long element. More... | |
| const_iterator | end () const |
| Get iterator pointing beyond last vector_long element. More... | |
| size_type | size () const |
| The size (number of elements) of the vector_long. More... | |
| long * | data () |
| Give access to the data block_long. More... | |
| long const * | data () const |
| Give access to the data block_long. More... | |
| size_type | max_size () const |
| The max size (number of elements) of the vector_long. More... | |
| bool | empty () const |
| Find if the vector_long is empty. More... | |
| void | swap (vector_long &v) |
| Swap two vector_long objects. More... | |
| reverse_iterator | rbegin () |
| Get iterator pointing to first vector_long element. More... | |
| const_reverse_iterator | rbegin () const |
| Get iterator pointing to first vector_long element. More... | |
| reverse_iterator | rend () |
| Get iterator pointing beyond last vector_long element. More... | |
| const_reverse_iterator | rend () const |
| Get iterator pointing beyond last vector_long element. More... | |
| long & | operator[] (size_t const n) |
Get element at position n by reference ([] operator). More... | |
| long const & | operator[] (size_t const n) const |
Get element at position n by reference ([] operator). More... | |
| gsl_vector_long * | get () |
| Get the gsl_vector_long. More... | |
| gsl_vector_long const * | get () const |
| Get the gsl_vector_long. More... | |
| bool | unique () const |
Find if this is the only object sharing the gsl_vector_long. More... | |
| size_t | use_count () const |
| Find how many vector_long objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| void | set_zero () |
| C++ version of gsl_vector_long_set_zero(). More... | |
| void | set_all (long x) |
| C++ version of gsl_vector_long_set_all(). More... | |
| int | set_basis (size_t i) |
| C++ version of gsl_vector_long_set_basis(). More... | |
| int | memcpy (vector_long const &src) |
| C++ version of gsl_vector_long_memcpy(). More... | |
| int | reverse () |
| C++ version of gsl_vector_long_reverse(). More... | |
| int | swap_elements (size_t const i, size_t const j) |
| C++ version of gsl_vector_long_swap_elements(). More... | |
| long | max () const |
| C++ version of gsl_vector_long_max(). More... | |
| long | min () const |
| C++ version of gsl_vector_long_min(). More... | |
| void | minmax (long *min_out, long *max_out) const |
| C++ version of gsl_vector_long_minmax(). More... | |
| void | minmax (long &min_out, long &max_out) const |
| C++ version of gsl_vector_long_minmax(). More... | |
| size_t | max_index () const |
| C++ version of gsl_vector_long_max_index(). More... | |
| size_t | min_index () const |
| C++ version of gsl_vector_long_min_index(). More... | |
| void | minmax_index (size_t *imin, size_t *imax) const |
| C++ version of gsl_vector_long_minmax_index(). More... | |
| int | add (vector_long const &b) |
| C++ version of gsl_vector_long_add(). More... | |
| int | sub (vector_long const &b) |
| C++ version of gsl_vector_long_sub(). More... | |
| int | mul (vector_long const &b) |
| C++ version of gsl_vector_long_mul(). More... | |
| int | div (vector_long const &b) |
| C++ version of gsl_vector_long_div(). More... | |
| int | scale (long const x) |
| C++ version of gsl_vector_long_scale(). More... | |
| int | add_constant (long const x) |
| C++ version of gsl_vector_long_add_constant(). More... | |
| int | axpby (long const alpha, vector_long const &x, long const beta) |
| C++ version of gsl_vector_long_axpby(). More... | |
| long | sum (vector_long const &a) const |
| C++ version of gsl_vector_long_sum(). More... | |
| int | isnull () const |
| C++ version of gsl_vector_long_isnull(). More... | |
| int | ispos () const |
| C++ version of gsl_vector_long_ispos(). More... | |
| int | isneg () const |
| C++ version of gsl_vector_long_isneg(). More... | |
| int | isnonneg () const |
| C++ version of gsl_vector_long_isnonneg(). More... | |
| long | get (size_t const i) const |
| C++ version of gsl_vector_long_get(). More... | |
| void | set (size_t const i, long x) |
| C++ version of gsl_vector_long_set(). More... | |
| long * | ptr (size_t const i) |
| C++ version of gsl_vector_long_ptr(). More... | |
| long const * | const_ptr (size_t const i) const |
| C++ version of gsl_vector_long_const_ptr(). More... | |
| int | fread (FILE *stream) |
| C++ version of gsl_vector_long_fread(). More... | |
| int | fwrite (FILE *stream) const |
| C++ version of gsl_vector_long_fwrite(). More... | |
| int | fscanf (FILE *stream) |
| C++ version of gsl_vector_long_fscanf(). More... | |
| int | fprintf (FILE *stream, char const *format) const |
| C++ version of gsl_vector_long_fprintf(). More... | |
| vector_long (block_long &b, size_t const offset, size_t const n, size_t const stride=1) | |
| C++ version of gsl_vector_long_alloc_from_block(). More... | |
| vector_long (vector_long &v, size_t const offset, size_t const n, size_t const stride=1) | |
| C++ version of gsl_vector_long_alloc_from_vector(). More... | |
| vector_long | subvector (size_t i, size_t n) |
| C++ version of gsl_vector_long_subvector(). More... | |
| vector_long | subvector_with_stride (size_t i, size_t stride, size_t n) |
| C++ version of gsl_vector_long_subvector_with_stride(). More... | |
| vector_long const | const_subvector (size_t i, size_t n) const |
| C++ version of gsl_vector_long_const_subvector(). More... | |
| vector_long const | const_subvector_with_stride (size_t i, size_t stride, size_t n) const |
| C++ version of gsl_vector_long_const_subvector_with_stride(). More... | |
Static Public Member Functions | |
| static vector_long | calloc (size_t const n) |
| C++ version of gsl_vector_long_calloc(). More... | |
| static vector_long | view_array (long *v, size_t n) |
| C++ version of gsl_vector_long_view_array(). More... | |
| static vector_long | view_array_with_stride (long *base, size_t stride, size_t n) |
| C++ version of gsl_vector_long_view_array_with_stride(). More... | |
| static vector_long const | const_view_array (long const *v, size_t n) |
| C++ version of gsl_vector_long _const_view_array(). More... | |
| static vector_long const | const_view_array_with_stride (long const *base, size_t stride, size_t n) |
| C++ version of gsl_vector_long_const_view_array_with_stride(). More... | |
| template<typename ARRAY > | |
| static vector_long | view_array (ARRAY &v, size_t n=0) |
| C++ version of gsl_vector_long_view_array(). More... | |
| template<typename ARRAY > | |
| static vector_long | view_array_with_stride (ARRAY &base, size_t stride, size_t n=0) |
| C++ version of gsl_vector_long_view_array_with_stride(). More... | |
| template<typename ARRAY > | |
| static vector_long const | const_view_array (ARRAY const &v, size_t n=0) |
| C++ version of gsl_vector_long _const_view_array(). More... | |
| template<typename ARRAY > | |
| static vector_long const | const_view_array_with_stride (ARRAY const &base, size_t stride, size_t n=0) |
| C++ version of gsl_vector_long_const_view_array_with_stride(). More... | |
| static vector_long | alloc_row_from_matrix (matrix_long &m, size_t const i) |
| C++ version of gsl_vector_long_alloc_row_from_matrix(). More... | |
| static vector_long | alloc_col_from_matrix (matrix_long &m, size_t const j) |
| C++ version of gsl_vector_long_alloc_col_from_matrix(). More... | |
Private Attributes | |
| bool | owns_data |
| Used to allow a vector that does not own its data. More... | |
| gsl_vector_long * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
This class handles vector_long objects as shared handles.
It models a random access container so that STL functions work with vector_long.
Note that vector_long_views are implemented as vector_long objects here.
If you want to use a std::vector<long> or similar object as if it were a gsl::vector_long object, use the constructor that takes a stride argument. But use it with caution. Changing the size of the original object does not change the size of the gsl::vector_long object; so it may be safer to create gsl::vector_long objects in this way as needed.
Definition at line 45 of file vector_long.hpp.
| typedef const_iterator_t<false> gsl::vector_long::const_iterator |
The const_iterator type.
Definition at line 1065 of file vector_long.hpp.
| typedef value_type const* gsl::vector_long::const_pointer |
A container must have a constant pointer type.
Definition at line 397 of file vector_long.hpp.
| typedef value_type const& gsl::vector_long::const_reference |
A container must have a constant reference type.
Definition at line 387 of file vector_long.hpp.
| typedef const_iterator_t<true> gsl::vector_long::const_reverse_iterator |
The const_reverse_t type.
Definition at line 1073 of file vector_long.hpp.
A container must have a difference_type.
Definition at line 1082 of file vector_long.hpp.
| typedef iterator_t<false> gsl::vector_long::iterator |
The iterator type.
Definition at line 1069 of file vector_long.hpp.
| typedef value_type* gsl::vector_long::pointer |
A container must have a pointer type.
Definition at line 392 of file vector_long.hpp.
| typedef value_type& gsl::vector_long::reference |
A container must have a reference type.
Definition at line 382 of file vector_long.hpp.
| typedef iterator_t<true> gsl::vector_long::reverse_iterator |
The reverse_iterator type.
Definition at line 1077 of file vector_long.hpp.
| typedef size_t gsl::vector_long::size_type |
A container must have a size_type.
Definition at line 1087 of file vector_long.hpp.
| typedef long gsl::vector_long::value_type |
A container must have a value_type.
Definition at line 377 of file vector_long.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 50 of file vector_long.hpp.
References ccgsl_pointer, count, and owns_data.
|
inlineexplicit |
The default constructor creates a new vector_long with n elements.
| n | The number of elements in the vector_long |
Definition at line 61 of file vector_long.hpp.
References ccgsl_pointer, count, and gsl::rstat::n().
|
inlineexplicit |
Could construct from a gsl_vector_long.
This is not usually a good idea. In this case we should not use gsl_vector_long_free() to deallocate the memory.
| v | The vector_long |
Definition at line 99 of file vector_long.hpp.
|
inline |
Could construct from a std::initializer_list in C++11.
| initializer_list | The initializer_list. |
Definition at line 110 of file vector_long.hpp.
References gsl::rstat::n().
|
inline |
The copy constructor.
This shares the vector_long. Use clone() if you want a full copy.
| v | The vector_long to copy. |
Definition at line 131 of file vector_long.hpp.
|
inline |
The copy constructor.
This shares the vector_long. Use clone() if you want a full copy.
| v | The vector_long to copy. |
Definition at line 139 of file vector_long.hpp.
|
inline |
Construct from an object that implements data() and size().
This is primarily intended to allow you to construct from a std::vector<long> or std::array<long,size_t> object. But it could be used to construct a subvector. This constructor shares the data with the original object. But the price of efficiency is safety. If you change the size of v the size of the gsl::vector_long does not change. Stride is normally set to 1 and allows us to define a constructor. But it can be set to another value to indicate, for example, that you only wish every second element to be included in this.
| v | The object that you want this to share data with. |
| stride | The stride. |
Definition at line 175 of file vector_long.hpp.
References gsl::rstat::n().
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 209 of file vector_long.hpp.
|
inline |
Move constructor.
| v | The vector_long to move. |
Definition at line 269 of file vector_long.hpp.
|
inline |
C++ version of gsl_vector_long_alloc_from_block().
| b | The block_long |
| offset | The offset within the block_long |
| n | The number of elements |
| stride | The stride |
Definition at line 1516 of file vector_long.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_long_alloc_from_vector().
| v | The vector_long |
| offset | The offset |
| n | The number of elements |
| stride | The stride |
Definition at line 1533 of file vector_long.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_long_add().
| b | vector_long to add to this |
Definition at line 1391 of file vector_long.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_add_constant().
| x | constant to add to each element of this |
Definition at line 1421 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
static |
C++ version of gsl_vector_long_alloc_col_from_matrix().
| m | A matrix_long |
| j | A column |
|
static |
C++ version of gsl_vector_long_alloc_row_from_matrix().
| m | A matrix_long |
| i | A row |
|
inline |
C++ version of gsl_vector_long_axpby().
| alpha | constant to multiply x by |
| x | another vector |
| beta | constant to multiply this by |
this Definition at line 1429 of file vector_long.hpp.
References gsl::ran::beta(), get(), and gsl::rstat::quantile::get().
|
inline |
Get iterator pointing to first vector_long element.
Definition at line 1093 of file vector_long.hpp.
|
inline |
Get iterator pointing to first vector_long element.
Definition at line 1100 of file vector_long.hpp.
|
inlinestatic |
C++ version of gsl_vector_long_calloc().
This constructs a vector_long object with entries initialised to zero.
| n | The size of the vector_long |
Definition at line 1310 of file vector_long.hpp.
References gsl::rstat::n().
|
inline |
The clone function.
Use this if you want a copy of the block_long that does not share the underlying data.
this. Definition at line 198 of file vector_long.hpp.
References get(), gsl::rstat::quantile::get(), and gsl::cheb::size().
|
inline |
C++ version of gsl_vector_long_const_ptr().
| i | index of element to get |
Definition at line 1482 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_const_subvector().
| i | The offset |
| n | The size |
Definition at line 1661 of file vector_long.hpp.
References gsl::rstat::quantile::get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_long_const_subvector_with_stride().
| i | The offset |
| stride | The stride |
| n | The size |
Definition at line 1675 of file vector_long.hpp.
References gsl::rstat::quantile::get(), and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_long _const_view_array().
| v | An array of type long |
| n | The size of the vector_long: the default gives access to the whole array |
Definition at line 1757 of file vector_long.hpp.
References gsl::exception::GSL_EBADLEN, and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_long _const_view_array().
| v | An array of type long |
| n | The size of the vector_long |
Definition at line 1576 of file vector_long.hpp.
References gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_long_const_view_array_with_stride().
| base | An array of type long |
| stride | The stride |
| n | The size of the vector_long: the default gives access to the whole array |
Definition at line 1776 of file vector_long.hpp.
References gsl::exception::GSL_EBADLEN, and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_long_const_view_array_with_stride().
| base | An array of type long |
| stride | The stride |
| n | The size of the vector_long |
Definition at line 1590 of file vector_long.hpp.
References gsl::rstat::n().
|
inline |
Give access to the data block_long.
The data() and size() functions mimic the functions of std::array<T> and std::vector<T>. This function can throw an exception or produce a GSL error if the vector_long stride is not 1. However, new vector_long objects are always initialised to have a stride of 1.
Definition at line 1133 of file vector_long.hpp.
|
inline |
Give access to the data block_long.
The data() and size() functions mimic the functions of std::array<T> and std::vector<T>. This function can throw an exception or produce a GSL error if the vector_long stride is not 1. However, new vector_long objects are always initialised to have a stride of 1.
Definition at line 1147 of file vector_long.hpp.
|
inline |
C++ version of gsl_vector_long_div().
| b | vector_long to dividev this by elementwise |
Definition at line 1409 of file vector_long.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::quantile::get().
|
inline |
Find if the vector_long is empty.
true if has size zero; otherwise false Definition at line 1166 of file vector_long.hpp.
|
inline |
Get iterator pointing beyond last vector_long element.
Definition at line 1108 of file vector_long.hpp.
References gsl::cheb::size().
|
inline |
Get iterator pointing beyond last vector_long element.
Definition at line 1116 of file vector_long.hpp.
References gsl::cheb::size().
|
inline |
C++ version of gsl_vector_long_fprintf().
| stream | A C file stream |
| format | d, e, f or g |
Definition at line 1507 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_fread().
| stream | A C file stream |
Definition at line 1488 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_fscanf().
| stream | A C file stream |
Definition at line 1500 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_fwrite().
| stream | A C file stream |
Definition at line 1494 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
Get the gsl_vector_long.
Definition at line 1276 of file vector_long.hpp.
Referenced by axpby(), clone(), gsl::matrix_long::const_view_vector(), gsl::matrix_long::const_view_vector_with_tda(), gsl::matrix_long::get_col(), gsl::matrix_long::get_row(), memcpy(), gsl::spmatrix_long::scale_columns(), gsl::matrix_long::scale_columns(), gsl::spmatrix_long::scale_rows(), gsl::matrix_long::scale_rows(), gsl::matrix_long::set_col(), gsl::matrix_long::set_row(), vector_long(), gsl::permute::vector_long_forward(), gsl::permute::vector_long_inverse(), gsl::matrix_long::view_vector(), and gsl::matrix_long::view_vector_with_tda().
|
inline |
Get the gsl_vector_long.
Definition at line 1281 of file vector_long.hpp.
|
inline |
C++ version of gsl_vector_long_get().
| i | index of element to get |
Definition at line 1464 of file vector_long.hpp.
References get().
Referenced by get().
|
inline |
C++ version of gsl_vector_long_isneg().
+1 or 0 according as elements are all negative or not Definition at line 1453 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_isnonneg().
+1 or 0 according as elements are all nonnegative or not Definition at line 1458 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_isnull().
+1 or 0 according as elements are all zero or not Definition at line 1443 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_ispos().
+1 or 0 according as elements are all positive or not Definition at line 1448 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_max().
Definition at line 1349 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_max_index().
Definition at line 1373 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
The max size (number of elements) of the vector_long.
Identical to size but required for a container.
Definition at line 1160 of file vector_long.hpp.
|
inline |
C++ version of gsl_vector_long_memcpy().
| src | source vector_long |
Definition at line 1331 of file vector_long.hpp.
References get(), and gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_min().
Definition at line 1354 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_min_index().
Definition at line 1378 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_minmax().
| min_out | minimum element of vector_long |
| max_out | maximum element of vector_long |
Definition at line 1367 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_minmax().
| min_out | minimum element of vector_long |
| max_out | maximum element of vector_long |
Definition at line 1360 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_minmax_index().
| imin | index of minimum value of vector_long |
| imax | index of maximum value of vector_long |
Definition at line 1384 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_mul().
| b | vector_long to multiply elementwise with this |
Definition at line 1403 of file vector_long.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::quantile::get().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_vector_long Definition at line 1301 of file vector_long.hpp.
|
inline |
Two vector_long objects are different equal if their elements are not identical.
| v | The vector_long to be compared with this |
false or true according as this and v have identical elements or not Definition at line 291 of file vector_long.hpp.
|
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 vector_long is nonnegative.
| v | The vector_long to be compared with this |
false or true according as this is less than v lexicographically Definition at line 303 of file vector_long.hpp.
References ccgsl_pointer, gsl::movstat::min(), and gsl::cheb::size().
|
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 vector_long is nonnegative.
| v | The vector_long to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 357 of file vector_long.hpp.
|
inline |
Move operator.
| v | The vector_long to move. |
Definition at line 279 of file vector_long.hpp.
References swap().
|
inline |
The assignment operator.
This makes a shared copy.
| v | The vector_long to copy |
Definition at line 148 of file vector_long.hpp.
References ccgsl_pointer, count, and owns_data.
|
inline |
Two vector_long objects are identically equal if their elements are identical.
| v | The vector_long to be compared with this |
true or false according as this and v have identical elements or not Definition at line 248 of file vector_long.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 vector_long is nonnegative.
| v | The vector_long to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 330 of file vector_long.hpp.
References ccgsl_pointer, gsl::movstat::min(), and gsl::cheb::size().
|
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 vector_long is nonnegative.
| v | The vector_long to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 369 of file vector_long.hpp.
|
inline |
Get element at position n by reference ([] operator).
| n | The position of the element |
Definition at line 1216 of file vector_long.hpp.
References gsl::exception::GSL_EFAULT, gsl::exception::GSL_EINVAL, gsl::rstat::n(), and gsl::cheb::size().
|
inline |
Get element at position n by reference ([] operator).
| n | The position of the element |
Definition at line 1239 of file vector_long.hpp.
References gsl::exception::GSL_EFAULT, gsl::exception::GSL_EINVAL, gsl::rstat::n(), and gsl::cheb::size().
|
inline |
C++ version of gsl_vector_long_ptr().
| i | index of element to get |
Definition at line 1476 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
Get iterator pointing to first vector_long element.
Definition at line 1183 of file vector_long.hpp.
References gsl::cheb::size().
|
inline |
Get iterator pointing to first vector_long element.
Definition at line 1191 of file vector_long.hpp.
References gsl::cheb::size().
|
inline |
Get iterator pointing beyond last vector_long element.
Definition at line 1200 of file vector_long.hpp.
|
inline |
Get iterator pointing beyond last vector_long element.
Definition at line 1207 of file vector_long.hpp.
|
inline |
Stop sharing ownership of the shared pointer.
Definition at line 263 of file vector_long.hpp.
References swap().
|
inline |
C++ version of gsl_vector_long_reverse().
Definition at line 1336 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_scale().
| x | constant to multiply this by |
Definition at line 1415 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_set().
| i | index to set |
| x | new value for element |
Definition at line 1470 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_set_all().
| x | The value to which all elements are set |
Definition at line 1319 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_set_basis().
Creates a basis vector_long with one nonzero element.
| i | The element to be set to 1. |
Definition at line 1325 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_set_zero().
Definition at line 1314 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
The size (number of elements) of the vector_long.
Definition at line 1125 of file vector_long.hpp.
|
inline |
C++ version of gsl_vector_long_sub().
| b | vector_long to subtract from this |
Definition at line 1397 of file vector_long.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_long_subvector().
| i | The offset |
| n | The size |
Definition at line 1634 of file vector_long.hpp.
References gsl::rstat::quantile::get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_long_subvector_with_stride().
| i | The offset |
| stride | The stride |
| n | The size |
Definition at line 1648 of file vector_long.hpp.
References gsl::rstat::quantile::get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_long_sum().
| a | The vector |
Definition at line 1438 of file vector_long.hpp.
References gsl::sf::mathieu::a().
|
inline |
Swap two vector_long objects.
This works even if the vector_long objects have different sizes because it swaps pointers.
| v | The vector_long to swap with this. |
Definition at line 1173 of file vector_long.hpp.
References ccgsl_pointer, and count.
Referenced by operator=(), and reset().
|
inline |
C++ version of gsl_vector_long_swap_elements().
| i | first element |
| j | second element |
Definition at line 1343 of file vector_long.hpp.
References gsl::rstat::quantile::get().
|
inline |
Find if this is the only object sharing the gsl_vector_long.
true or falses according as this is the only vector_long object sharing the gsl_vector_long Definition at line 1287 of file vector_long.hpp.
|
inline |
Find how many vector_long objects share this pointer.
Definition at line 1292 of file vector_long.hpp.
|
inlinestatic |
C++ version of gsl_vector_long_view_array().
| v | An array of long |
| n | The size of the vector_long: the default gives access to the whole array |
Definition at line 1720 of file vector_long.hpp.
References gsl::exception::GSL_EBADLEN, and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_long_view_array().
| v | An array of type long |
| n | The size of the vector_long |
Definition at line 1549 of file vector_long.hpp.
References gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_long_view_array_with_stride().
| base | An array of type long |
| stride | The stride |
| n | The size of the vector_long: the default gives access to the whole array |
Definition at line 1739 of file vector_long.hpp.
References gsl::exception::GSL_EBADLEN, and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_long_view_array_with_stride().
| base | An array of type long |
| stride | The stride |
| n | The size of the vector_long |
Definition at line 1563 of file vector_long.hpp.
References gsl::rstat::n().
|
inline |
This function is intended mainly for internal use.
It allows this to point to a gsl_vector_long without the possibility deleting it when this is no longer in scope. It is the responsibility of the programmer to delete v. The function is used internally for converting a function that takes a gsl::vector_long* argument to one that takes a gsl_vector_long* argument.
| v | The gsl_vector_long |
Definition at line 228 of file vector_long.hpp.
Referenced by gsl::matrix_long::operator[]().
|
private |
The shared pointer.
Definition at line 1265 of file vector_long.hpp.
Referenced by gsl::vector_long::iterator_t< reverse_t >::operator-(), gsl::vector_long::const_iterator_t< reverse_t >::operator-(), gsl::vector_long::iterator_t< reverse_t >::operator<(), gsl::vector_long::const_iterator_t< reverse_t >::operator<(), operator<(), operator=(), operator==(), operator>(), swap(), and vector_long().
|
private |
The shared reference count.
Definition at line 1269 of file vector_long.hpp.
Referenced by operator=(), swap(), and vector_long().
|
private |
Used to allow a vector that does not own its data.
Definition at line 1261 of file vector_long.hpp.
Referenced by operator=(), and vector_long().