|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
This class handles vector_complex_float objects as shared handles. More...
#include <vector_complex_float.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 complex_float | value_type |
| A container must have a value_type. More... | |
| typedef complex_float_ref | reference |
| A container must have a reference type. More... | |
| typedef reference const | const_reference |
| A container must have a constant reference type. More... | |
| typedef complex_float_ptr | pointer |
| A container must have a pointer type. More... | |
| typedef complex_float_ptr 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_complex_float () | |
| The default constructor is only really useful for assigning to. More... | |
| vector_complex_float (size_t const n) | |
| The default constructor creates a new vector_complex_float with n elements. More... | |
| vector_complex_float (gsl_vector_complex_float *v) | |
| Could construct from a gsl_vector_complex_float. More... | |
| vector_complex_float (std::initializer_list< std::complex< float > > initializer_list) | |
| Could construct from a std::initializer_list in C++11. More... | |
| vector_complex_float (vector_complex_float const &v) | |
| The copy constructor. More... | |
| vector_complex_float & | operator= (vector_complex_float const &v) |
| The assignment operator. More... | |
| vector_complex_float | clone () const |
| The clone function. More... | |
| ~vector_complex_float () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| void | wrap_gsl_vector_complex_float_without_ownership (gsl_vector_complex_float *v) |
| This function is intended mainly for internal use. More... | |
| bool | operator== (vector_complex_float const &v) const |
| Two vector_complex_float objects are identically equal if their elements are identical. More... | |
| void | reset () |
| Stop sharing ownership of the shared pointer. More... | |
| vector_complex_float (vector_complex_float &&v) | |
| Move constructor. More... | |
| vector_complex_float & | operator= (vector_complex_float &&v) |
| Move operator. More... | |
| bool | operator!= (vector_complex_float const &v) const |
| Two vector_complex_float objects are different equal if their elements are not identical. More... | |
| bool | operator< (vector_complex_float const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (vector_complex_float const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (vector_complex_float const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (vector_complex_float const &v) const |
| A container needs to define an ordering for sorting. More... | |
| iterator | begin () |
| Get iterator pointing to first vector_complex_float element. More... | |
| const_iterator | begin () const |
| Get iterator pointing to first vector_complex_float element. More... | |
| iterator | end () |
| Get iterator pointing beyond last vector_complex_float element. More... | |
| const_iterator | end () const |
| Get iterator pointing beyond last vector_complex_float element. More... | |
| size_type | size () const |
| The size (number of elements) of the vector_complex_float. More... | |
| float * | data () |
| Give access to the data block. More... | |
| float const * | data () const |
| Give access to the data block. More... | |
| size_type | max_size () const |
| The max size (number of elements) of the vector_complex_float. More... | |
| bool | empty () const |
| Find if the vector_complex_float is empty. More... | |
| void | swap (vector_complex_float &v) |
| Swap two vector_complex_float objects. More... | |
| reverse_iterator | rbegin () |
| Get iterator pointing to first vector_complex_float element. More... | |
| const_reverse_iterator | rbegin () const |
| Get iterator pointing to first vector_complex_float element. More... | |
| reverse_iterator | rend () |
| Get iterator pointing beyond last vector_complex_float element. More... | |
| const_reverse_iterator | rend () const |
| Get iterator pointing beyond last vector_complex_float element. More... | |
| complex_float_ref | operator[] (size_t const n) |
Get element at position n by reference ([] operator). More... | |
| complex_float_ref const | operator[] (size_t const n) const |
Get element at position n by reference ([] operator). More... | |
| gsl_vector_complex_float * | get () |
| Get the gsl_vector_complex_float. More... | |
| gsl_vector_complex_float const * | get () const |
| Get the gsl_vector_complex_float. More... | |
| bool | unique () const |
Find if this is the only object sharing the gsl_vector_complex_float. More... | |
| size_t | use_count () const |
| Find how many vector_complex_float objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| void | set_zero () |
| C++ version of gsl_vector_complex_float_set_zero(). More... | |
| void | set_all (complex_float x) |
| C++ version of gsl_vector_complex_float_set_all(). More... | |
| int | set_basis (size_t i) |
| C++ version of gsl_vector_complex_float_set_basis(). More... | |
| int | memcpy (vector_complex_float const &src) |
| C++ version of gsl_vector_complex_float_memcpy(). More... | |
| int | reverse () |
| C++ version of gsl_vector_complex_float_reverse(). More... | |
| int | swap_elements (size_t const i, size_t const j) |
| C++ version of gsl_vector_complex_float_swap_elements(). More... | |
| int | add (vector_complex_float const &b) |
| C++ version of gsl_vector_complex_float_add(). More... | |
| int | sub (vector_complex_float const &b) |
| C++ version of gsl_vector_complex_float_sub(). More... | |
| int | mul (vector_complex_float const &b) |
| C++ version of gsl_vector_complex_float_mul(). More... | |
| int | div (vector_complex_float const &b) |
| C++ version of gsl_vector_complex_float_div(). More... | |
| int | scale (complex_float const x) |
| C++ version of gsl_vector_complex_float_scale(). More... | |
| int | add_constant (complex_float const x) |
| C++ version of gsl_vector_complex_float_add_constant(). More... | |
| int | axpby (complex_float const alpha, vector_complex_float const &x, complex_float const beta) |
| C++ version of gsl_vector_complex_float_axpby(). More... | |
| int | isnull () const |
| C++ version of gsl_vector_complex_float_isnull(). More... | |
| int | ispos () const |
| C++ version of gsl_vector_complex_float_ispos(). More... | |
| int | isneg () const |
| C++ version of gsl_vector_complex_float_isneg(). More... | |
| int | isnonneg () const |
| C++ version of gsl_vector_complex_float_isnonneg(). More... | |
| complex_float | get (size_t const i) const |
| C++ version of gsl_vector_complex_float_get(). More... | |
| void | set (size_t const i, complex_float x) |
| C++ version of gsl_vector_complex_float_set(). More... | |
| complex_float_ptr | ptr (size_t const i) |
| C++ version of gsl_vector_complex_float_ptr(). More... | |
| complex_float_ptr const | const_ptr (size_t const i) |
| C++ version of gsl_vector_complex_float_const_ptr(). More... | |
| int | fread (FILE *stream) |
| C++ version of gsl_vector_complex_float_fread(). More... | |
| int | fwrite (FILE *stream) const |
| C++ version of gsl_vector_complex_float_fwrite(). More... | |
| int | fscanf (FILE *stream) |
| C++ version of gsl_vector_complex_float_fscanf(). More... | |
| int | fprintf (FILE *stream, char const *format) const |
| C++ version of gsl_vector_complex_float_fprintf(). More... | |
| vector_complex_float (block_complex_float &b, size_t const offset, size_t const n, size_t const stride=1) | |
| C++ version of gsl_vector_complex_float_alloc_from_block(). More... | |
| vector_complex_float (vector_complex_float &v, size_t const offset, size_t const n, size_t const stride=1) | |
| C++ version of gsl_vector_complex_float_alloc_from_vector(). More... | |
| gsl::vector_float | real () |
| C++ version of gsl_vector_complex_real(). More... | |
| gsl::vector_float const | const_real () const |
| C++ version of gsl_vector_complex_const_real(). More... | |
| gsl::vector_float const | real () const |
| Another C++ version of gsl_vector_complex_const_real(). More... | |
| gsl::vector_float | imag () |
| C++ version of gsl_vector_complex_imag(). More... | |
| gsl::vector_float const | const_imag () const |
| C++ version of gsl_vector_complex_const_imag(). More... | |
| gsl::vector_float const | imag () const |
| Another C++ version of gsl_vector_complex_const_imag(). More... | |
| vector_complex_float | subvector (size_t i, size_t n) |
| C++ version of gsl_vector_complex_float_subvector(). More... | |
| vector_complex_float | subvector_with_stride (size_t i, size_t stride, size_t n) |
| C++ version of gsl_vector_complex_float_subvector_with_stride(). More... | |
| vector_complex_float const | const_subvector (size_t i, size_t n) const |
| C++ version of gsl_vector_complex_float_const_subvector(). More... | |
| vector_complex_float const | const_subvector_with_stride (size_t i, size_t stride, size_t n) const |
| C++ version of gsl_vector_complex_float_const_subvector_with_stride(). More... | |
Static Public Member Functions | |
| static vector_complex_float | calloc (size_t const n) |
| C++ version of gsl_vector_complex_float_calloc(). More... | |
| static vector_complex_float | view_array (float *v, size_t n) |
| C++ version of gsl_vector_complex_float_view_array(). More... | |
| static vector_complex_float | view_array_with_stride (float *base, size_t stride, size_t n) |
| C++ version of gsl_vector_complex_float_view_array_with_stride(). More... | |
| static vector_complex_float const | const_view_array (float const *v, size_t n) |
| C++ version of gsl_vector_complex_float _const_view_array(). More... | |
| static vector_complex_float const | const_view_array_with_stride (float const *base, size_t stride, size_t n) |
| C++ version of gsl_vector_complex_float_const_view_array_with_stride(). More... | |
| template<typename ARRAY > | |
| static vector_complex_float | view_array (ARRAY &v, size_t n=0) |
| C++ version of gsl_vector_complex_float_view_array(). More... | |
| template<typename ARRAY > | |
| static vector_complex_float | view_array_with_stride (ARRAY &base, size_t stride, size_t n=0) |
| C++ version of gsl_vector_complex_float_view_array_with_stride(). More... | |
| template<typename ARRAY > | |
| static vector_complex_float const | const_view_array (ARRAY const &v, size_t n=0) |
| C++ version of gsl_vector_complex_float _const_view_array(). More... | |
| template<typename ARRAY > | |
| static vector_complex_float const | const_view_array_with_stride (ARRAY const &base, size_t stride, size_t n=0) |
| C++ version of gsl_vector_complex_float_const_view_array_with_stride(). More... | |
| static vector_complex_float | alloc_row_from_matrix (matrix_complex_float &m, size_t const i) |
| C++ version of gsl_vector_complex_float_alloc_row_from_matrix(). More... | |
| static vector_complex_float | alloc_col_from_matrix (matrix_complex_float &m, size_t const j) |
| C++ version of gsl_vector_complex_float_alloc_col_from_matrix(). More... | |
Private Attributes | |
| bool | owns_data |
| Used to allow a vector that does not own its data. More... | |
| gsl_vector_complex_float * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
This class handles vector_complex_float objects as shared handles.
It models a random access container so that STL functions work with vector_complex_float.
Note that vector_complex_float_views are implemented as vector_complex_float objects here.
Definition at line 46 of file vector_complex_float.hpp.
| typedef const_iterator_t<false> gsl::vector_complex_float::const_iterator |
The const_iterator type.
Definition at line 1033 of file vector_complex_float.hpp.
| typedef complex_float_ptr const gsl::vector_complex_float::const_pointer |
A container must have a constant pointer type.
Definition at line 368 of file vector_complex_float.hpp.
| typedef reference const gsl::vector_complex_float::const_reference |
A container must have a constant reference type.
Definition at line 358 of file vector_complex_float.hpp.
The const_reverse_t type.
Definition at line 1041 of file vector_complex_float.hpp.
A container must have a difference_type.
Definition at line 1050 of file vector_complex_float.hpp.
| typedef iterator_t<false> gsl::vector_complex_float::iterator |
The iterator type.
Definition at line 1037 of file vector_complex_float.hpp.
A container must have a pointer type.
Definition at line 363 of file vector_complex_float.hpp.
A container must have a reference type.
Definition at line 353 of file vector_complex_float.hpp.
| typedef iterator_t<true> gsl::vector_complex_float::reverse_iterator |
The reverse_iterator type.
Definition at line 1045 of file vector_complex_float.hpp.
| typedef size_t gsl::vector_complex_float::size_type |
A container must have a size_type.
Definition at line 1055 of file vector_complex_float.hpp.
A container must have a value_type.
Definition at line 348 of file vector_complex_float.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 51 of file vector_complex_float.hpp.
References ccgsl_pointer, count, and owns_data.
Referenced by calloc(), const_subvector(), const_subvector_with_stride(), const_view_array(), const_view_array_with_stride(), operator=(), reset(), subvector(), subvector_with_stride(), view_array(), and view_array_with_stride().
|
inlineexplicit |
The default constructor creates a new vector_complex_float with n elements.
| n | The number of elements in the vector_complex_float |
Definition at line 62 of file vector_complex_float.hpp.
References ccgsl_pointer, count, and gsl::rstat::n().
|
inlineexplicit |
Could construct from a gsl_vector_complex_float.
This is not usually a good idea. In this case you should not use gsl_vector_complex_float_free() to deallocate the memory.
| v | The vector_complex_float |
Definition at line 102 of file vector_complex_float.hpp.
References ccgsl_pointer, and count.
|
inline |
Could construct from a std::initializer_list in C++11.
| initializer_list | The initializer_list. |
Definition at line 114 of file vector_complex_float.hpp.
References begin(), ccgsl_pointer, count, and gsl::rstat::n().
|
inline |
The copy constructor.
This shares the vector_complex_float. Use clone() if you want a full copy.
| v | The vector_complex_float to copy. |
Definition at line 138 of file vector_complex_float.hpp.
References count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 180 of file vector_complex_float.hpp.
References ccgsl_pointer, count, and owns_data.
|
inline |
Move constructor.
| v | The vector_complex_float to move. |
Definition at line 239 of file vector_complex_float.hpp.
References count.
|
inline |
C++ version of gsl_vector_complex_float_alloc_from_block().
| b | The block_complex_float |
| offset | The offset within the block_complex_float |
| n | The number of elements |
| stride | The stride |
Definition at line 1439 of file vector_complex_float.hpp.
References gsl::sf::mathieu::b(), ccgsl_pointer, count, and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_complex_float_alloc_from_vector().
| v | The vector_complex_float |
| offset | The offset |
| n | The number of elements |
| stride | The stride |
Definition at line 1456 of file vector_complex_float.hpp.
References ccgsl_pointer, count, get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_vector_complex_float_add().
| b | vector_complex_float to add to this |
Definition at line 1314 of file vector_complex_float.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_vector_complex_float_add_constant().
| x | constant to add to each element of this |
Definition at line 1344 of file vector_complex_float.hpp.
References get().
|
static |
C++ version of gsl_vector_complex_float_alloc_col_from_matrix().
| m | A matrix |
| j | A column |
|
static |
C++ version of gsl_vector_complex_float_alloc_row_from_matrix().
| m | A matrix_complex_float |
| i | A row |
|
inline |
C++ version of gsl_vector_complex_float_axpby().
| alpha | constant to multiply x by |
| x | another matrix |
| beta | constant to multiply this by |
this Definition at line 1352 of file vector_complex_float.hpp.
References gsl::ran::beta(), and get().
|
inline |
Get iterator pointing to first vector_complex_float element.
Definition at line 1061 of file vector_complex_float.hpp.
Referenced by vector_complex_float().
|
inline |
Get iterator pointing to first vector_complex_float element.
Definition at line 1068 of file vector_complex_float.hpp.
|
inlinestatic |
C++ version of gsl_vector_complex_float_calloc().
This constructs a vector_complex_float object with entries initialised to zero.
| n | The size of the vector_complex_float |
Definition at line 1274 of file vector_complex_float.hpp.
References gsl::rstat::n(), and vector_complex_float().
|
inline |
The clone function.
Use this if you want a copy of the vector_complex_float that does not share the underlying data.
this. Definition at line 169 of file vector_complex_float.hpp.
|
inline |
C++ version of gsl_vector_complex_const_imag().
Note that this is a view: if the complex_vector from which the return value is constructed is deleted then the return value should not be used.
Definition at line 1504 of file vector_complex_float.hpp.
References CCGSL_MTY, gsl::vector_float::const_view_array_with_stride(), data(), and size().
|
inline |
C++ version of gsl_vector_complex_float_const_ptr().
| i | index of element to get |
Definition at line 1402 of file vector_complex_float.hpp.
References CCGSL_MTY, ccgsl_pointer, and gsl::exception::GSL_EINVAL.
|
inline |
C++ version of gsl_vector_complex_const_real().
Note that this is a view: if the complex_vector from which the return value is constructed is deleted then the return value should not be used.
Definition at line 1480 of file vector_complex_float.hpp.
References CCGSL_MTY, gsl::vector_float::const_view_array_with_stride(), data(), and size().
|
inline |
C++ version of gsl_vector_complex_float_const_subvector().
| i | The offset |
| n | The size |
Definition at line 1632 of file vector_complex_float.hpp.
References get(), gsl::rstat::n(), and vector_complex_float().
|
inline |
C++ version of gsl_vector_complex_float_const_subvector_with_stride().
| i | The offset |
| stride | The stride |
| n | The size |
Definition at line 1646 of file vector_complex_float.hpp.
References get(), gsl::rstat::n(), and vector_complex_float().
|
inlinestatic |
C++ version of gsl_vector_complex_float _const_view_array().
| v | An array of type float |
| n | The size of the vector_complex_float: the default gives access to the whole array |
Definition at line 1728 of file vector_complex_float.hpp.
References gsl::exception::GSL_EBADLEN, gsl::rstat::n(), and vector_complex_float().
|
inlinestatic |
C++ version of gsl_vector_complex_float _const_view_array().
| v | An array of type float |
| n | The size of the vector_complex_float |
Definition at line 1547 of file vector_complex_float.hpp.
References gsl::rstat::n(), and vector_complex_float().
|
inlinestatic |
C++ version of gsl_vector_complex_float_const_view_array_with_stride().
| base | An array of type float |
| stride | The stride |
| n | The size of the vector_complex_float: the default gives access to the whole array |
Definition at line 1747 of file vector_complex_float.hpp.
References gsl::exception::GSL_EBADLEN, gsl::rstat::n(), and vector_complex_float().
|
inlinestatic |
C++ version of gsl_vector_complex_float_const_view_array_with_stride().
| base | An array of type float |
| stride | The stride |
| n | The size of the vector_complex_float |
Definition at line 1561 of file vector_complex_float.hpp.
References gsl::rstat::n(), and vector_complex_float().
|
inline |
Give access to the data block.
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 stride is not 1. However, new vector objects are always initialised to have a stride of 1.
Definition at line 1101 of file vector_complex_float.hpp.
References ccgsl_pointer.
Referenced by gsl::fft::complex_float::radix2::backward(), gsl::fft::complex_float::backward(), const_imag(), const_real(), gsl::fft::complex_float::radix2::dif_backward(), gsl::fft::complex_float::radix2::dif_forward(), gsl::fft::complex_float::radix2::dif_inverse(), gsl::fft::complex_float::radix2::dif_transform(), gsl::fft::complex_float::radix2::forward(), gsl::fft::complex_float::forward(), imag(), gsl::fft::complex_float::radix2::inverse(), gsl::fft::complex_float::inverse(), real(), gsl::fft::complex_float::radix2::transform(), gsl::fft::complex_float::transform(), gsl::fft::halfcomplex_float::unpack(), and gsl::fft::real_float::unpack().
|
inline |
Give access to the data block.
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 stride is not 1. However, new vector objects are always initialised to have a stride of 1.
Definition at line 1115 of file vector_complex_float.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_vector_complex_float_div().
| b | vector_complex_float to dividev this by elementwise |
Definition at line 1332 of file vector_complex_float.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
Find if the vector_complex_float is empty.
true if has size zero; otherwise false Definition at line 1134 of file vector_complex_float.hpp.
References ccgsl_pointer.
|
inline |
Get iterator pointing beyond last vector_complex_float element.
Definition at line 1076 of file vector_complex_float.hpp.
References ccgsl_pointer, and size().
|
inline |
Get iterator pointing beyond last vector_complex_float element.
Definition at line 1084 of file vector_complex_float.hpp.
References ccgsl_pointer, and size().
|
inline |
C++ version of gsl_vector_complex_float_fprintf().
| stream | A C file stream |
| format | d, e, f or g |
Definition at line 1430 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_fread().
| stream | A C file stream |
Definition at line 1411 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_fscanf().
| stream | A C file stream |
Definition at line 1423 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_fwrite().
| stream | A C file stream |
Definition at line 1417 of file vector_complex_float.hpp.
References get().
|
inline |
Get the gsl_vector_complex_float.
Definition at line 1240 of file vector_complex_float.hpp.
References ccgsl_pointer.
Referenced by add(), add_constant(), axpby(), gsl::blas::caxpy(), gsl::blas::ccopy(), gsl::blas::cdotc(), gsl::blas::cdotu(), gsl::blas::cgemv(), gsl::blas::cgerc(), gsl::blas::cgeru(), gsl::blas::chemv(), gsl::blas::cher(), gsl::blas::cher2(), clone(), const_subvector(), const_subvector_with_stride(), gsl::matrix_complex_float::const_view_vector(), gsl::matrix_complex_float::const_view_vector_with_tda(), gsl::blas::cscal(), gsl::blas::csscal(), gsl::blas::cswap(), gsl::blas::ctrmv(), gsl::blas::ctrsv(), div(), fprintf(), fread(), fscanf(), fwrite(), gsl::matrix_complex_float::get_col(), gsl::matrix_complex_float::get_row(), gsl::blas::icamax(), isneg(), isnonneg(), isnull(), ispos(), memcpy(), mul(), reverse(), scale(), gsl::spmatrix_complex_float::scale_columns(), gsl::matrix_complex_float::scale_columns(), gsl::spmatrix_complex_float::scale_rows(), gsl::matrix_complex_float::scale_rows(), gsl::blas::scasum(), gsl::blas::scnrm2(), set(), set_all(), set_basis(), gsl::matrix_complex_float::set_col(), gsl::matrix_complex_float::set_row(), set_zero(), sub(), subvector(), subvector_with_stride(), swap_elements(), vector_complex_float(), gsl::permute::vector_complex_float_forward(), gsl::permute::vector_complex_float_inverse(), gsl::matrix_complex_float::view_vector(), and gsl::matrix_complex_float::view_vector_with_tda().
|
inline |
Get the gsl_vector_complex_float.
Definition at line 1245 of file vector_complex_float.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_vector_complex_float_get().
| i | index of element to get |
Definition at line 1381 of file vector_complex_float.hpp.
References get().
Referenced by get().
|
inline |
C++ version of gsl_vector_complex_imag().
Note that this is a view: if the complex_vector from which the return value is constructed is deleted then the return value should not be used.
Definition at line 1496 of file vector_complex_float.hpp.
References CCGSL_MTY, data(), size(), and gsl::vector_float::view_array_with_stride().
|
inline |
Another C++ version of gsl_vector_complex_const_imag().
Note that this is a view: if the complex_vector from which the return value is constructed is deleted then the return value should not be used.
Definition at line 1512 of file vector_complex_float.hpp.
References CCGSL_MTY, gsl::vector_float::const_view_array_with_stride(), data(), and size().
|
inline |
C++ version of gsl_vector_complex_float_isneg().
+1 or 0 according as elements are all negative or not Definition at line 1370 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_isnonneg().
+1 or 0 according as elements are all nonnegative or not Definition at line 1375 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_isnull().
+1 or 0 according as elements are all zero or not Definition at line 1360 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_ispos().
+1 or 0 according as elements are all positive or not Definition at line 1365 of file vector_complex_float.hpp.
References get().
|
inline |
The max size (number of elements) of the vector_complex_float.
Identical to size but required for a container.
Definition at line 1128 of file vector_complex_float.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_vector_complex_float_memcpy().
| src | source vector_complex_float |
Definition at line 1295 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_mul().
| b | vector_complex_float to multiply elementwise with this |
Definition at line 1326 of file vector_complex_float.hpp.
References gsl::sf::mathieu::b(), and get().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_vector_complex_float Definition at line 1265 of file vector_complex_float.hpp.
References ccgsl_pointer.
|
inline |
Two vector_complex_float objects are different equal if their elements are not identical.
| v | The vector_complex_float to be compared with this |
false or true according as this and v have identical elements or not Definition at line 262 of file vector_complex_float.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 vector_complex_float is nonnegative.
| v | The vector_complex_float to be compared with this |
false or true according as this is less than v lexicographically Definition at line 274 of file vector_complex_float.hpp.
References ccgsl_pointer, gsl::movstat::min(), and size().
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 vector_complex_float is nonnegative.
| v | The vector_complex_float to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 328 of file vector_complex_float.hpp.
References operator<(), and operator==().
|
inline |
Move operator.
| v | The vector_complex_float to move. |
Definition at line 250 of file vector_complex_float.hpp.
References vector_complex_float().
|
inline |
The assignment operator.
This makes a shared copy.
| v | The vector_complex_float to copy |
Definition at line 148 of file vector_complex_float.hpp.
References ccgsl_pointer, count, and owns_data.
|
inline |
Two vector_complex_float objects are identically equal if their elements are identical.
| v | The vector_complex_float to be compared with this |
true or false according as this and v have identical elements or not Definition at line 217 of file vector_complex_float.hpp.
References CCGSL_MTY, and ccgsl_pointer.
Referenced by operator!=(), operator<=(), and 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 vector_complex_float is nonnegative.
| v | The vector_complex_float to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 301 of file vector_complex_float.hpp.
References ccgsl_pointer, gsl::movstat::min(), and size().
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 vector_complex_float is nonnegative.
| v | The vector_complex_float to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 340 of file vector_complex_float.hpp.
References operator==(), and operator>().
|
inline |
Get element at position n by reference ([] operator).
| n | The position of the element |
Definition at line 1184 of file vector_complex_float.hpp.
References CCGSL_MTY, ccgsl_pointer, gsl::exception::GSL_EFAILED, gsl::rstat::n(), and size().
|
inline |
Get element at position n by reference ([] operator).
| n | The position of the element |
Definition at line 1205 of file vector_complex_float.hpp.
References ccgsl_pointer, gsl::exception::GSL_EFAILED, gsl::rstat::n(), and size().
|
inline |
C++ version of gsl_vector_complex_float_ptr().
| i | index of element to get |
Definition at line 1393 of file vector_complex_float.hpp.
References CCGSL_MTY, ccgsl_pointer, and gsl::exception::GSL_EINVAL.
|
inline |
Get iterator pointing to first vector_complex_float element.
Definition at line 1151 of file vector_complex_float.hpp.
References ccgsl_pointer, and size().
|
inline |
Get iterator pointing to first vector_complex_float element.
Definition at line 1159 of file vector_complex_float.hpp.
References ccgsl_pointer, and size().
|
inline |
C++ version of gsl_vector_complex_real().
Note that this is a view: if the complex_vector from which the return value is constructed is deleted then the return value should not be used.
Definition at line 1472 of file vector_complex_float.hpp.
References CCGSL_MTY, data(), size(), and gsl::vector_float::view_array_with_stride().
|
inline |
Another C++ version of gsl_vector_complex_const_real().
Note that this is a view: if the complex_vector from which the return value is constructed is deleted then the return value should not be used.
Definition at line 1488 of file vector_complex_float.hpp.
References CCGSL_MTY, gsl::vector_float::const_view_array_with_stride(), data(), and size().
|
inline |
Get iterator pointing beyond last vector_complex_float element.
Definition at line 1168 of file vector_complex_float.hpp.
|
inline |
Get iterator pointing beyond last vector_complex_float element.
Definition at line 1175 of file vector_complex_float.hpp.
|
inline |
Stop sharing ownership of the shared pointer.
Definition at line 233 of file vector_complex_float.hpp.
References vector_complex_float().
|
inline |
C++ version of gsl_vector_complex_float_reverse().
Definition at line 1300 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_scale().
| x | constant to multiply this by |
Definition at line 1338 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_set().
| i | index to set |
| x | new value for element |
Definition at line 1387 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_set_all().
| x | The value to which all elements are set |
Definition at line 1283 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_set_basis().
Creates a basis vector_complex_float with one nonzero element.
| i | The element to be set to 1. |
Definition at line 1289 of file vector_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_vector_complex_float_set_zero().
Definition at line 1278 of file vector_complex_float.hpp.
References get().
|
inline |
The size (number of elements) of the vector_complex_float.
Definition at line 1093 of file vector_complex_float.hpp.
References ccgsl_pointer.
Referenced by gsl::fft::complex_float::radix2::backward(), gsl::fft::complex_float::backward(), clone(), const_imag(), const_real(), gsl::fft::complex_float::radix2::dif_backward(), gsl::fft::complex_float::radix2::dif_forward(), gsl::fft::complex_float::radix2::dif_inverse(), gsl::fft::complex_float::radix2::dif_transform(), end(), gsl::fft::complex_float::radix2::forward(), gsl::fft::complex_float::forward(), imag(), gsl::fft::complex_float::radix2::inverse(), gsl::fft::complex_float::inverse(), operator<(), operator>(), operator[](), rbegin(), real(), gsl::fft::complex_float::radix2::transform(), gsl::fft::complex_float::transform(), gsl::fft::halfcomplex_float::unpack(), and gsl::fft::real_float::unpack().
|
inline |
C++ version of gsl_vector_complex_float_sub().
| b | vector_complex_float to subtract from this |
Definition at line 1320 of file vector_complex_float.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_vector_complex_float_subvector().
| i | The offset |
| n | The size |
Definition at line 1605 of file vector_complex_float.hpp.
References get(), gsl::rstat::n(), and vector_complex_float().
|
inline |
C++ version of gsl_vector_complex_float_subvector_with_stride().
| i | The offset |
| stride | The stride |
| n | The size |
Definition at line 1619 of file vector_complex_float.hpp.
References get(), gsl::rstat::n(), and vector_complex_float().
|
inline |
Swap two vector_complex_float objects.
This works even if the vector_complex_float objects have different sizes because it swaps pointers.
| v | The vector_complex_float to swap with this. |
Definition at line 1141 of file vector_complex_float.hpp.
References ccgsl_pointer, and count.
|
inline |
C++ version of gsl_vector_complex_float_swap_elements().
| i | first element |
| j | second element |
Definition at line 1307 of file vector_complex_float.hpp.
References get().
|
inline |
Find if this is the only object sharing the gsl_vector_complex_float.
true or falses according as this is the only vector_complex_float object sharing the gsl_vector_complex_float Definition at line 1251 of file vector_complex_float.hpp.
References count.
|
inline |
Find how many vector_complex_float objects share this pointer.
Definition at line 1256 of file vector_complex_float.hpp.
References count.
|
inlinestatic |
C++ version of gsl_vector_complex_float_view_array().
| v | An array of float |
| n | The size of the vector_complex_float: the default gives access to the whole array |
Definition at line 1691 of file vector_complex_float.hpp.
References gsl::exception::GSL_EBADLEN, gsl::rstat::n(), and vector_complex_float().
|
inlinestatic |
C++ version of gsl_vector_complex_float_view_array().
| v | An array of type float |
| n | The size of the vector_complex_float |
Definition at line 1520 of file vector_complex_float.hpp.
References gsl::rstat::n(), and vector_complex_float().
|
inlinestatic |
C++ version of gsl_vector_complex_float_view_array_with_stride().
| base | An array of type float |
| stride | The stride |
| n | The size of the vector_complex_float: the default gives access to the whole array |
Definition at line 1710 of file vector_complex_float.hpp.
References gsl::exception::GSL_EBADLEN, gsl::rstat::n(), and vector_complex_float().
|
inlinestatic |
C++ version of gsl_vector_complex_float_view_array_with_stride().
| base | An array of type float |
| stride | The stride |
| n | The size of the vector_complex_float |
Definition at line 1534 of file vector_complex_float.hpp.
References gsl::rstat::n(), and vector_complex_float().
|
inline |
This function is intended mainly for internal use.
It allows this to point to a gsl_vector_complex_float 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_complex_float* argument to one that takes a gsl_vector_complex_float* argument.
| v | The gsl_vector_complex_float |
Definition at line 197 of file vector_complex_float.hpp.
References ccgsl_pointer, count, and owns_data.
Referenced by gsl::matrix_complex_float::operator[]().
|
private |
The shared pointer.
Definition at line 1229 of file vector_complex_float.hpp.
Referenced by const_ptr(), data(), empty(), end(), get(), max_size(), operator bool(), gsl::vector_complex_float::iterator_t< reverse_t >::operator-(), gsl::vector_complex_float::const_iterator_t< reverse_t >::operator-(), gsl::vector_complex_float::iterator_t< reverse_t >::operator<(), gsl::vector_complex_float::const_iterator_t< reverse_t >::operator<(), operator<(), operator=(), operator==(), operator>(), operator[](), ptr(), rbegin(), size(), swap(), vector_complex_float(), wrap_gsl_vector_complex_float_without_ownership(), and ~vector_complex_float().
|
private |
The shared reference count.
Definition at line 1233 of file vector_complex_float.hpp.
Referenced by operator=(), swap(), unique(), use_count(), vector_complex_float(), wrap_gsl_vector_complex_float_without_ownership(), and ~vector_complex_float().
|
private |
Used to allow a vector that does not own its data.
Definition at line 1225 of file vector_complex_float.hpp.
Referenced by operator=(), vector_complex_float(), wrap_gsl_vector_complex_float_without_ownership(), and ~vector_complex_float().