|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
This class handles vector_char objects as shared handles. More...
#include <vector_char.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 char | 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_char () | |
| The default constructor is only really useful for assigning to. More... | |
| vector_char (size_t const n) | |
| The default constructor creates a new vector_char with n elements. More... | |
| vector_char (gsl_vector_char *v) | |
| Could construct from a gsl_vector_char. More... | |
| vector_char (std::initializer_list< char > initializer_list) | |
| Could construct from a std::initializer_list in C++11. More... | |
| vector_char (vector_char const &v) | |
| The copy constructor. More... | |
| vector_char (vector_char &v) | |
| The copy constructor. More... | |
| vector_char & | operator= (vector_char const &v) |
| The assignment operator. More... | |
| template<typename V > | |
| vector_char (V &v, size_t const stride=1) | |
| Construct from an object that implements data() and size(). More... | |
| vector_char | clone () const |
| The clone function. More... | |
| ~vector_char () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| void | wrap_gsl_vector_char_without_ownership (gsl_vector_char *v) |
| This function is intended mainly for internal use. More... | |
| bool | operator== (vector_char const &v) const |
| Two vector_char objects are identically equal if their elements are identical. More... | |
| void | reset () |
| Stop sharing ownership of the shared pointer. More... | |
| vector_char (vector_char &&v) | |
| Move constructor. More... | |
| vector_char & | operator= (vector_char &&v) |
| Move operator. More... | |
| bool | operator!= (vector_char const &v) const |
| Two vector_char objects are different equal if their elements are not identical. More... | |
| bool | operator< (vector_char const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (vector_char const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (vector_char const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (vector_char const &v) const |
| A container needs to define an ordering for sorting. More... | |
| iterator | begin () |
| Get iterator pointing to first vector_char element. More... | |
| const_iterator | begin () const |
| Get iterator pointing to first vector_char element. More... | |
| iterator | end () |
| Get iterator pointing beyond last vector_char element. More... | |
| const_iterator | end () const |
| Get iterator pointing beyond last vector_char element. More... | |
| size_type | size () const |
| The size (number of elements) of the vector_char. More... | |
| char * | data () |
| Give access to the data block_char. More... | |
| char const * | data () const |
| Give access to the data block_char. More... | |
| size_type | max_size () const |
| The max size (number of elements) of the vector_char. More... | |
| bool | empty () const |
| Find if the vector_char is empty. More... | |
| void | swap (vector_char &v) |
| Swap two vector_char objects. More... | |
| reverse_iterator | rbegin () |
| Get iterator pointing to first vector_char element. More... | |
| const_reverse_iterator | rbegin () const |
| Get iterator pointing to first vector_char element. More... | |
| reverse_iterator | rend () |
| Get iterator pointing beyond last vector_char element. More... | |
| const_reverse_iterator | rend () const |
| Get iterator pointing beyond last vector_char element. More... | |
| char & | operator[] (size_t const n) |
Get element at position n by reference ([] operator). More... | |
| char const & | operator[] (size_t const n) const |
Get element at position n by reference ([] operator). More... | |
| gsl_vector_char * | get () |
| Get the gsl_vector_char. More... | |
| gsl_vector_char const * | get () const |
| Get the gsl_vector_char. More... | |
| bool | unique () const |
Find if this is the only object sharing the gsl_vector_char. More... | |
| size_t | use_count () const |
| Find how many vector_char objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| void | set_zero () |
| C++ version of gsl_vector_char_set_zero(). More... | |
| void | set_all (char x) |
| C++ version of gsl_vector_char_set_all(). More... | |
| int | set_basis (size_t i) |
| C++ version of gsl_vector_char_set_basis(). More... | |
| int | memcpy (vector_char const &src) |
| C++ version of gsl_vector_char_memcpy(). More... | |
| int | reverse () |
| C++ version of gsl_vector_char_reverse(). More... | |
| int | swap_elements (size_t const i, size_t const j) |
| C++ version of gsl_vector_char_swap_elements(). More... | |
| char | max () const |
| C++ version of gsl_vector_char_max(). More... | |
| char | min () const |
| C++ version of gsl_vector_char_min(). More... | |
| void | minmax (char *min_out, char *max_out) const |
| C++ version of gsl_vector_char_minmax(). More... | |
| void | minmax (char &min_out, char &max_out) const |
| C++ version of gsl_vector_char_minmax(). More... | |
| size_t | max_index () const |
| C++ version of gsl_vector_char_max_index(). More... | |
| size_t | min_index () const |
| C++ version of gsl_vector_char_min_index(). More... | |
| void | minmax_index (size_t *imin, size_t *imax) const |
| C++ version of gsl_vector_char_minmax_index(). More... | |
| int | add (vector_char const &b) |
| C++ version of gsl_vector_char_add(). More... | |
| int | sub (vector_char const &b) |
| C++ version of gsl_vector_char_sub(). More... | |
| int | mul (vector_char const &b) |
| C++ version of gsl_vector_char_mul(). More... | |
| int | div (vector_char const &b) |
| C++ version of gsl_vector_char_div(). More... | |
| int | scale (char const x) |
| C++ version of gsl_vector_char_scale(). More... | |
| int | add_constant (char const x) |
| C++ version of gsl_vector_char_add_constant(). More... | |
| int | axpby (char const alpha, vector_char const &x, char const beta) |
| C++ version of gsl_vector_char_axpby(). More... | |
| char | sum (vector_char const &a) const |
| C++ version of gsl_vector_char_sum(). More... | |
| int | isnull () const |
| C++ version of gsl_vector_char_isnull(). More... | |
| int | ispos () const |
| C++ version of gsl_vector_char_ispos(). More... | |
| int | isneg () const |
| C++ version of gsl_vector_char_isneg(). More... | |
| int | isnonneg () const |
| C++ version of gsl_vector_char_isnonneg(). More... | |
| char | get (size_t const i) const |
| C++ version of gsl_vector_char_get(). More... | |
| void | set (size_t const i, char x) |
| C++ version of gsl_vector_char_set(). More... | |
| char * | ptr (size_t const i) |
| C++ version of gsl_vector_char_ptr(). More... | |
| char const * | const_ptr (size_t const i) const |
| C++ version of gsl_vector_char_const_ptr(). More... | |
| int | fread (FILE *stream) |
| C++ version of gsl_vector_char_fread(). More... | |
| int | fwrite (FILE *stream) const |
| C++ version of gsl_vector_char_fwrite(). More... | |
| int | fscanf (FILE *stream) |
| C++ version of gsl_vector_char_fscanf(). More... | |
| int | fprintf (FILE *stream, char const *format) const |
| C++ version of gsl_vector_char_fprintf(). More... | |
| vector_char (block_char &b, size_t const offset, size_t const n, size_t const stride=1) | |
| C++ version of gsl_vector_char_alloc_from_block(). More... | |
| vector_char (vector_char &v, size_t const offset, size_t const n, size_t const stride=1) | |
| C++ version of gsl_vector_char_alloc_from_vector(). More... | |
| vector_char | subvector (size_t i, size_t n) |
| C++ version of gsl_vector_char_subvector(). More... | |
| vector_char | subvector_with_stride (size_t i, size_t stride, size_t n) |
| C++ version of gsl_vector_char_subvector_with_stride(). More... | |
| vector_char const | const_subvector (size_t i, size_t n) const |
| C++ version of gsl_vector_char_const_subvector(). More... | |
| vector_char const | const_subvector_with_stride (size_t i, size_t stride, size_t n) const |
| C++ version of gsl_vector_char_const_subvector_with_stride(). More... | |
Static Public Member Functions | |
| static vector_char | calloc (size_t const n) |
| C++ version of gsl_vector_char_calloc(). More... | |
| static vector_char | view_array (char *v, size_t n) |
| C++ version of gsl_vector_char_view_array(). More... | |
| static vector_char | view_array_with_stride (char *base, size_t stride, size_t n) |
| C++ version of gsl_vector_char_view_array_with_stride(). More... | |
| static vector_char const | const_view_array (char const *v, size_t n) |
| C++ version of gsl_vector_char_const_view_array(). More... | |
| static vector_char const | const_view_array_with_stride (char const *base, size_t stride, size_t n) |
| C++ version of gsl_vector_char_const_view_array_with_stride(). More... | |
| template<typename ARRAY > | |
| static vector_char | view_array (ARRAY &v, size_t n=0) |
| C++ version of gsl_vector_char_view_array(). More... | |
| template<typename ARRAY > | |
| static vector_char | view_array_with_stride (ARRAY &base, size_t stride, size_t n=0) |
| C++ version of gsl_vector_char_view_array_with_stride(). More... | |
| template<typename ARRAY > | |
| static vector_char const | const_view_array (ARRAY const &v, size_t n=0) |
| C++ version of gsl_vector_char _const_view_array(). More... | |
| template<typename ARRAY > | |
| static vector_char const | const_view_array_with_stride (ARRAY const &base, size_t stride, size_t n=0) |
| C++ version of gsl_vector_char_const_view_array_with_stride(). More... | |
| static vector_char | alloc_row_from_matrix (matrix_char &m, size_t const i) |
| C++ version of gsl_vector_char_alloc_row_from_matrix(). More... | |
| static vector_char | alloc_col_from_matrix (matrix_char &m, size_t const j) |
| C++ version of gsl_vector_char_alloc_col_from_matrix(). More... | |
Private Attributes | |
| bool | owns_data |
| Used to allow a vector that does not own its data. More... | |
| gsl_vector_char * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
This class handles vector_char objects as shared handles.
It models a random access container so that STL functions work with vector_char.
Note that vector_char_views are implemented as vector_char objects here.
If you want to use a std::vector<char> or similar object as if it were a gsl::vector_char 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_char object; so it may be safer to create gsl::vector_char objects in this way as needed.
Definition at line 45 of file vector_char.hpp.
| typedef const_iterator_t<false> gsl::vector_char::const_iterator |
The const_iterator type.
Definition at line 1064 of file vector_char.hpp.
| typedef value_type const* gsl::vector_char::const_pointer |
A container must have a constant pointer type.
Definition at line 396 of file vector_char.hpp.
| typedef value_type const& gsl::vector_char::const_reference |
A container must have a constant reference type.
Definition at line 386 of file vector_char.hpp.
| typedef const_iterator_t<true> gsl::vector_char::const_reverse_iterator |
The const_reverse_t type.
Definition at line 1072 of file vector_char.hpp.
A container must have a difference_type.
Definition at line 1081 of file vector_char.hpp.
| typedef iterator_t<false> gsl::vector_char::iterator |
The iterator type.
Definition at line 1068 of file vector_char.hpp.
| typedef value_type* gsl::vector_char::pointer |
A container must have a pointer type.
Definition at line 391 of file vector_char.hpp.
| typedef value_type& gsl::vector_char::reference |
A container must have a reference type.
Definition at line 381 of file vector_char.hpp.
| typedef iterator_t<true> gsl::vector_char::reverse_iterator |
The reverse_iterator type.
Definition at line 1076 of file vector_char.hpp.
| typedef size_t gsl::vector_char::size_type |
A container must have a size_type.
Definition at line 1086 of file vector_char.hpp.
| typedef char gsl::vector_char::value_type |
A container must have a value_type.
Definition at line 376 of file vector_char.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 50 of file vector_char.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
The default constructor creates a new vector_char with n elements.
| n | The number of elements in the vector_char |
Definition at line 60 of file vector_char.hpp.
References ccgsl_pointer, count, and gsl::rstat::n().
|
inlineexplicit |
Could construct from a gsl_vector_char.
This is not usually a good idea. In this case we should not use gsl_vector_char_free() to deallocate the memory.
| v | The vector_char |
Definition at line 98 of file vector_char.hpp.
|
inline |
Could construct from a std::initializer_list in C++11.
| initializer_list | The initializer_list. |
Definition at line 109 of file vector_char.hpp.
References gsl::rstat::n().
|
inline |
The copy constructor.
This shares the vector_char. Use clone() if you want a full copy.
| v | The vector_char to copy. |
Definition at line 130 of file vector_char.hpp.
|
inline |
The copy constructor.
This shares the vector_char. Use clone() if you want a full copy.
| v | The vector_char to copy. |
Definition at line 137 of file vector_char.hpp.
|
inline |
Construct from an object that implements data() and size().
This is primarily intended to allow you to construct from a std::vector<char> or std::array<char,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_char 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 173 of file vector_char.hpp.
References gsl::rstat::n().
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 208 of file vector_char.hpp.
|
inline |
Move constructor.
| v | The vector_char to move. |
Definition at line 268 of file vector_char.hpp.
|
inline |
C++ version of gsl_vector_char_alloc_from_block().
| b | The block_char |
| offset | The offset within the block_char |
| n | The number of elements |
| stride | The stride |
Definition at line 1515 of file vector_char.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_char_alloc_from_vector().
| v | The vector_char |
| offset | The offset |
| n | The number of elements |
| stride | The stride |
Definition at line 1532 of file vector_char.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_char_add().
| b | vector_char to add to this |
Definition at line 1390 of file vector_char.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_add_constant().
| x | constant to add to each element of this |
Definition at line 1420 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
static |
C++ version of gsl_vector_char_alloc_col_from_matrix().
| m | A matrix_char |
| j | A column |
|
static |
C++ version of gsl_vector_char_alloc_row_from_matrix().
| m | A matrix_char |
| i | A row |
|
inline |
C++ version of gsl_vector_char_axpby().
| alpha | constant to multiply x by |
| x | another vector |
| beta | constant to multiply this by |
this Definition at line 1428 of file vector_char.hpp.
References gsl::ran::beta(), get(), and gsl::rstat::quantile::get().
|
inline |
Get iterator pointing to first vector_char element.
Definition at line 1092 of file vector_char.hpp.
|
inline |
Get iterator pointing to first vector_char element.
Definition at line 1099 of file vector_char.hpp.
|
inlinestatic |
C++ version of gsl_vector_char_calloc().
This constructs a vector_char object with entries initialised to zero.
| n | The size of the vector_char |
Definition at line 1309 of file vector_char.hpp.
References gsl::rstat::n().
|
inline |
The clone function.
Use this if you want a copy of the block_char that does not share the underlying data.
this. Definition at line 197 of file vector_char.hpp.
References get(), gsl::rstat::quantile::get(), and gsl::cheb::size().
|
inline |
C++ version of gsl_vector_char_const_ptr().
| i | index of element to get |
Definition at line 1481 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_const_subvector().
| i | The offset |
| n | The size |
Definition at line 1661 of file vector_char.hpp.
References gsl::rstat::quantile::get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_char_const_subvector_with_stride().
| i | The offset |
| stride | The stride |
| n | The size |
Definition at line 1675 of file vector_char.hpp.
References gsl::rstat::quantile::get(), and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_char _const_view_array().
| v | An array of type char |
| n | The size of the vector_char: the default gives access to the whole array |
Definition at line 1757 of file vector_char.hpp.
References gsl::exception::GSL_EBADLEN, and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_char_const_view_array().
| v | An array of type char |
| n | The size of the vector_char |
Definition at line 1576 of file vector_char.hpp.
References gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_char_const_view_array_with_stride().
| base | An array of type char |
| stride | The stride |
| n | The size of the vector_char: the default gives access to the whole array |
Definition at line 1776 of file vector_char.hpp.
References gsl::exception::GSL_EBADLEN, and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_char_const_view_array_with_stride().
| base | An array of type char |
| stride | The stride |
| n | The size of the vector_char |
Definition at line 1590 of file vector_char.hpp.
References gsl::rstat::n().
|
inline |
Give access to the data block_char.
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_char stride is not 1. However, new vector_char objects are always initialised to have a stride of 1.
Definition at line 1132 of file vector_char.hpp.
|
inline |
Give access to the data block_char.
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_char stride is not 1. However, new vector_char objects are always initialised to have a stride of 1.
Definition at line 1146 of file vector_char.hpp.
|
inline |
C++ version of gsl_vector_char_div().
| b | vector_char to dividev this by elementwise |
Definition at line 1408 of file vector_char.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::quantile::get().
|
inline |
Find if the vector_char is empty.
true if has size zero; otherwise false Definition at line 1165 of file vector_char.hpp.
|
inline |
Get iterator pointing beyond last vector_char element.
Definition at line 1107 of file vector_char.hpp.
References gsl::cheb::size().
|
inline |
Get iterator pointing beyond last vector_char element.
Definition at line 1115 of file vector_char.hpp.
References gsl::cheb::size().
|
inline |
C++ version of gsl_vector_char_fprintf().
| stream | A C file stream |
| format | d, e, f or g |
Definition at line 1506 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_fread().
| stream | A C file stream |
Definition at line 1487 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_fscanf().
| stream | A C file stream |
Definition at line 1499 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_fwrite().
| stream | A C file stream |
Definition at line 1493 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
Get the gsl_vector_char.
Definition at line 1275 of file vector_char.hpp.
Referenced by axpby(), clone(), gsl::matrix_char::const_view_vector(), gsl::matrix_char::const_view_vector_with_tda(), gsl::matrix_char::get_col(), gsl::matrix_char::get_row(), memcpy(), gsl::spmatrix_char::scale_columns(), gsl::matrix_char::scale_columns(), gsl::spmatrix_char::scale_rows(), gsl::matrix_char::scale_rows(), gsl::matrix_char::set_col(), gsl::matrix_char::set_row(), vector_char(), gsl::permute::vector_char_forward(), gsl::permute::vector_char_inverse(), gsl::matrix_char::view_vector(), and gsl::matrix_char::view_vector_with_tda().
|
inline |
Get the gsl_vector_char.
Definition at line 1280 of file vector_char.hpp.
|
inline |
C++ version of gsl_vector_char_get().
| i | index of element to get |
Definition at line 1463 of file vector_char.hpp.
References get().
Referenced by get().
|
inline |
C++ version of gsl_vector_char_isneg().
+1 or 0 according as elements are all negative or not Definition at line 1452 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_isnonneg().
+1 or 0 according as elements are all nonnegative or not Definition at line 1457 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_isnull().
+1 or 0 according as elements are all zero or not Definition at line 1442 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_ispos().
+1 or 0 according as elements are all positive or not Definition at line 1447 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_max().
Definition at line 1348 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_max_index().
Definition at line 1372 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
The max size (number of elements) of the vector_char.
Identical to size but required for a container.
Definition at line 1159 of file vector_char.hpp.
|
inline |
C++ version of gsl_vector_char_memcpy().
| src | source vector_char |
Definition at line 1330 of file vector_char.hpp.
References get(), and gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_min().
Definition at line 1353 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_min_index().
Definition at line 1377 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_minmax().
| min_out | minimum element of vector_char |
| max_out | maximum element of vector_char |
Definition at line 1366 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_minmax().
| min_out | minimum element of vector_char |
| max_out | maximum element of vector_char |
Definition at line 1359 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_minmax_index().
| imin | index of minimum value of vector_char |
| imax | index of maximum value of vector_char |
Definition at line 1383 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_mul().
| b | vector_char to multiply elementwise with this |
Definition at line 1402 of file vector_char.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_char Definition at line 1300 of file vector_char.hpp.
|
inline |
Two vector_char objects are different equal if their elements are not identical.
| v | The vector_char to be compared with this |
false or true according as this and v have identical elements or not Definition at line 290 of file vector_char.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_char is nonnegative.
| v | The vector_char to be compared with this |
false or true according as this is less than v lexicographically Definition at line 302 of file vector_char.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_char is nonnegative.
| v | The vector_char to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 356 of file vector_char.hpp.
|
inline |
Move operator.
| v | The vector_char to move. |
Definition at line 278 of file vector_char.hpp.
References swap().
|
inline |
The assignment operator.
This makes a shared copy.
| v | The vector_char to copy |
Definition at line 146 of file vector_char.hpp.
References ccgsl_pointer, count, and owns_data.
|
inline |
Two vector_char objects are identically equal if their elements are identical.
| v | The vector_char to be compared with this |
true or false according as this and v have identical elements or not Definition at line 247 of file vector_char.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_char is nonnegative.
| v | The vector_char to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 329 of file vector_char.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_char is nonnegative.
| v | The vector_char to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 368 of file vector_char.hpp.
|
inline |
Get element at position n by reference ([] operator).
| n | The position of the element |
Definition at line 1215 of file vector_char.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 1238 of file vector_char.hpp.
References gsl::exception::GSL_EFAULT, gsl::exception::GSL_EINVAL, gsl::rstat::n(), and gsl::cheb::size().
|
inline |
C++ version of gsl_vector_char_ptr().
| i | index of element to get |
Definition at line 1475 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
Get iterator pointing to first vector_char element.
Definition at line 1182 of file vector_char.hpp.
References gsl::cheb::size().
|
inline |
Get iterator pointing to first vector_char element.
Definition at line 1190 of file vector_char.hpp.
References gsl::cheb::size().
|
inline |
Get iterator pointing beyond last vector_char element.
Definition at line 1199 of file vector_char.hpp.
|
inline |
Get iterator pointing beyond last vector_char element.
Definition at line 1206 of file vector_char.hpp.
|
inline |
Stop sharing ownership of the shared pointer.
Definition at line 262 of file vector_char.hpp.
References swap().
|
inline |
C++ version of gsl_vector_char_reverse().
Definition at line 1335 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_scale().
| x | constant to multiply this by |
Definition at line 1414 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_set().
| i | index to set |
| x | new value for element |
Definition at line 1469 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_set_all().
| x | The value to which all elements are set |
Definition at line 1318 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_set_basis().
Creates a basis vector_char with one nonzero element.
| i | The element to be set to 1. |
Definition at line 1324 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_set_zero().
Definition at line 1313 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
The size (number of elements) of the vector_char.
Definition at line 1124 of file vector_char.hpp.
|
inline |
C++ version of gsl_vector_char_sub().
| b | vector_char to subtract from this |
Definition at line 1396 of file vector_char.hpp.
References gsl::sf::mathieu::b(), and gsl::rstat::quantile::get().
|
inline |
C++ version of gsl_vector_char_subvector().
| i | The offset |
| n | The size |
Definition at line 1634 of file vector_char.hpp.
References gsl::rstat::quantile::get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_char_subvector_with_stride().
| i | The offset |
| stride | The stride |
| n | The size |
Definition at line 1648 of file vector_char.hpp.
References gsl::rstat::quantile::get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_char_sum().
| a | The vector |
Definition at line 1437 of file vector_char.hpp.
References gsl::sf::mathieu::a().
|
inline |
Swap two vector_char objects.
This works even if the vector_char objects have different sizes because it swaps pointers.
| v | The vector_char to swap with this. |
Definition at line 1172 of file vector_char.hpp.
References ccgsl_pointer, and count.
Referenced by operator=(), and reset().
|
inline |
C++ version of gsl_vector_char_swap_elements().
| i | first element |
| j | second element |
Definition at line 1342 of file vector_char.hpp.
References gsl::rstat::quantile::get().
|
inline |
Find if this is the only object sharing the gsl_vector_char.
true or falses according as this is the only vector_char object sharing the gsl_vector_char Definition at line 1286 of file vector_char.hpp.
|
inline |
Find how many vector_char objects share this pointer.
Definition at line 1291 of file vector_char.hpp.
|
inlinestatic |
C++ version of gsl_vector_char_view_array().
| v | An array of char |
| n | The size of the vector_char: the default gives access to the whole array |
Definition at line 1720 of file vector_char.hpp.
References gsl::exception::GSL_EBADLEN, and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_char_view_array().
| v | An array of type char |
| n | The size of the vector_char |
Definition at line 1549 of file vector_char.hpp.
References gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_char_view_array_with_stride().
| base | An array of type char |
| stride | The stride |
| n | The size of the vector_char: the default gives access to the whole array |
Definition at line 1739 of file vector_char.hpp.
References gsl::exception::GSL_EBADLEN, and gsl::rstat::n().
|
inlinestatic |
C++ version of gsl_vector_char_view_array_with_stride().
| base | An array of type char |
| stride | The stride |
| n | The size of the vector_char |
Definition at line 1563 of file vector_char.hpp.
References gsl::rstat::n().
|
inline |
This function is intended mainly for internal use.
It allows this to point to a gsl_vector_char 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_char* argument to one that takes a gsl_vector_char* argument.
| v | The gsl_vector_char |
Definition at line 227 of file vector_char.hpp.
Referenced by gsl::matrix_char::operator[]().
|
private |
The shared pointer.
Definition at line 1264 of file vector_char.hpp.
Referenced by gsl::vector_char::iterator_t< reverse_t >::operator-(), gsl::vector_char::const_iterator_t< reverse_t >::operator-(), gsl::vector_char::iterator_t< reverse_t >::operator<(), gsl::vector_char::const_iterator_t< reverse_t >::operator<(), operator<(), operator=(), operator==(), operator>(), swap(), and vector_char().
|
private |
The shared reference count.
Definition at line 1268 of file vector_char.hpp.
Referenced by operator=(), swap(), and vector_char().
|
private |
Used to allow a vector that does not own its data.
Definition at line 1260 of file vector_char.hpp.
Referenced by operator=().