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

Classes | |
| class | const_iterator_t |
| A class template for the const iterators. More... | |
| class | iterator_base |
| We create a suitable class for iterator types here. More... | |
| class | iterator_t |
| A class template for the two non-const iterators. More... | |
| struct | vector_complex_float_ptr |
| This is a pointer-like type for iterator return values. More... | |
Public Types | |
| 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 size_t | size_type |
| A container must have a size_type. More... | |
Public Member Functions | |
| matrix_complex_float () | |
| The default constructor is only really useful for assigning to. More... | |
| matrix_complex_float (size_t const n1, size_t const n2) | |
| The default constructor creates a new matrix_complex_float with n1 rows and n2 columns. More... | |
| matrix_complex_float (gsl_matrix_complex_float *v) | |
| Could construct from a gsl_matrix_complex_float. More... | |
| matrix_complex_float (std::initializer_list< std::initializer_list< std::complex< float > > > initializer_list) | |
| Could construct from a std::initializer_list in C++11. More... | |
| matrix_complex_float (matrix_complex_float const &v) | |
| The copy constructor. More... | |
| matrix_complex_float & | operator= (matrix_complex_float const &v) |
| The assignment operator. More... | |
| matrix_complex_float | clone () const |
| The clone function. More... | |
| ~matrix_complex_float () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| void | reset () |
| Stop sharing ownership of the shared pointer. More... | |
| matrix_complex_float (matrix_complex_float &&v) | |
| Move constructor. More... | |
| matrix_complex_float & | operator= (matrix_complex_float &&v) |
| Move operator. 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... | |
| 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... | |
| size_t | size1 () const |
| The number of rows of the matrix_complex_float. More... | |
| size_t | size2 () const |
| The number of columns of the matrix_complex_float. More... | |
| void | swap (matrix_complex_float &m) |
| Swap two matrix_complex_float objects. More... | |
| void | tricpy (CBLAS_UPLO_t Uplo, CBLAS_DIAG_t Diag, matrix_complex_float const &src) |
Copy the upper or lower triangular part of matrix src to this. More... | |
| void | transpose_tricpy (CBLAS_UPLO_t Uplo, CBLAS_DIAG_t Diag, matrix_complex_float const &src) |
Copy the upper or lower triangular part of matrix src to this. More... | |
| matrix_complex_float | submatrix (size_t const i, size_t const j, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_complex_float_submatrix(). More... | |
| vector_complex_float | row (size_t const i) |
| C++ version of gsl_matrix_complex_float_row(). More... | |
| vector_complex_float | column (size_t const j) |
| C++ version of gsl_matrix_complex_float_column(). More... | |
| vector_complex_float | diagonal () |
| C++ version of gsl_matrix_complex_float_diagonal(). More... | |
| vector_complex_float | subdiagonal (size_t const k) |
| C++ version of gsl_matrix_complex_float_subdiagonal(). More... | |
| vector_complex_float | superdiagonal (size_t const k) |
| C++ version of gsl_matrix_complex_float_superdiagonal(). More... | |
| vector_complex_float | subrow (size_t const i, size_t const offset, size_t const n) |
| C++ version of gsl_matrix_complex_float_subrow(). More... | |
| vector_complex_float | subcolumn (size_t const j, size_t const offset, size_t const n) |
| C++ version of gsl_matrix_complex_float_subcolumn(). More... | |
| matrix_complex_float const | const_submatrix (size_t const i, size_t const j, size_t const n1, size_t const n2) const |
| C++ version of gsl_matrix_complex_float_const_submatrix(). More... | |
| vector_complex_float const | const_row (size_t const i) const |
| C++ version of gsl_matrix_complex_float_const_row(). More... | |
| vector_complex_float const | const_column (size_t const j) const |
| C++ version of gsl_matrix_complex_float_const_column(). More... | |
| vector_complex_float const | const_diagonal () const |
| C++ version of gsl_matrix_complex_float_const_diagonal(). More... | |
| vector_complex_float const | const_subdiagonal (size_t const k) const |
| C++ version of gsl_matrix_complex_float_const_subdiagonal(). More... | |
| vector_complex_float const | const_superdiagonal (size_t const k) const |
| C++ version of gsl_matrix_complex_float_const_superdiagonal(). More... | |
| vector_complex_float const | const_subrow (size_t const i, size_t const offset, size_t const n) const |
| C++ version of gsl_matrix_complex_float_const_subrow(). More... | |
| vector_complex_float const | const_subcolumn (size_t const j, size_t const offset, size_t const n) const |
| C++ version of gsl_matrix_complex_float_const_subcolumn(). More... | |
| matrix_complex_float const | submatrix (size_t const i, size_t const j, size_t const n1, size_t const n2) const |
| Another C++ version of gsl_matrix_complex_float_const_submatrix(). More... | |
| vector_complex_float const | row (size_t const i) const |
| Another C++ version of gsl_matrix_complex_float_const_row(). More... | |
| vector_complex_float const | column (size_t const j) const |
| Another C++ version of gsl_matrix_complex_float_const_column(). More... | |
| vector_complex_float const | diagonal () const |
| Another C++ version of gsl_matrix_complex_float_const_diagonal(). More... | |
| vector_complex_float const | subdiagonal (size_t const k) const |
| Another C++ version of gsl_matrix_complex_float_const_subdiagonal(). More... | |
| vector_complex_float const | superdiagonal (size_t const k) const |
| Another C++ version of gsl_matrix_complex_float_const_superdiagonal(). More... | |
| vector_complex_float const | subrow (size_t const i, size_t const offset, size_t const n) const |
| Another C++ version of gsl_matrix_complex_float_const_subrow(). More... | |
| vector_complex_float const | subcolumn (size_t const j, size_t const offset, size_t const n) const |
| Another C++ version of gsl_matrix_complex_float_const_subcolumn(). More... | |
| gsl_matrix_complex_float * | get () |
| Get the gsl_matrix_complex_float. More... | |
| gsl_matrix_complex_float const * | get () const |
| Get the gsl_matrix_complex_float. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_matrix_complex_float. More... | |
| size_t | use_count () const |
| Find how many matrix_complex_float objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| void | set_zero () |
| C++ version of gsl_matrix_complex_float_set_zero(). More... | |
| void | set_all (complex_float x) |
| C++ version of gsl_matrix_complex_float_set_all(). More... | |
| int | memcpy (matrix_complex_float const &src) |
| C++ version of gsl_matrix_complex_float_memcpy(). More... | |
| int | add (matrix_complex_float const &b) |
| C++ version of gsl_matrix_complex_float_add(). More... | |
| int | sub (matrix_complex_float const &b) |
| C++ version of gsl_matrix_complex_float_sub(). More... | |
| int | scale (complex_float const x) |
| C++ version of gsl_matrix_complex_float_scale(). More... | |
| int | add_constant (complex_float const x) |
| C++ version of gsl_matrix_complex_float_add_constant(). More... | |
| int | isnull () const |
| C++ version of gsl_matrix_complex_float_isnull(). More... | |
| int | ispos () const |
| C++ version of gsl_matrix_complex_float_ispos(). More... | |
| int | isneg () const |
| C++ version of gsl_matrix_complex_float_isneg(). More... | |
| int | isnonneg () const |
| C++ version of gsl_matrix_complex_float_isnonneg(). More... | |
| complex_float | get (size_t const i, size_t const j) const |
| C++ version of gsl_matrix_complex_float_get(). More... | |
| void | set (size_t const i, size_t const j, complex_float x) |
| C++ version of gsl_matrix_complex_float_set(). More... | |
| complex_float_ptr | ptr (size_t const i, size_t const j) |
| C++ version of gsl_matrix_complex_float_ptr(). More... | |
| complex_float_ptr const | const_ptr (size_t const i, size_t const j) const |
| C++ version of gsl_matrix_complex_float_const_ptr(). More... | |
| int | fread (FILE *stream) |
| C++ version of gsl_matrix_complex_float_fread(). More... | |
| int | fwrite (FILE *stream) const |
| C++ version of gsl_matrix_complex_float_fwrite(). More... | |
| int | fscanf (FILE *stream) |
| C++ version of gsl_matrix_complex_float_fscanf(). More... | |
| int | fprintf (FILE *stream, char const *format) const |
| C++ version of gsl_matrix_complex_float_fprintf(). More... | |
| matrix_complex_float (block_complex_float &b, size_t const offset, size_t const n1, size_t const n2, size_t const d2) | |
| C++ version of gsl_matrix_complex_float_alloc_from_block(). More... | |
| matrix_complex_float (matrix_complex_float &m, size_t const k1, size_t const k2, size_t const n1, size_t const n2) | |
| C++ version of gsl_matrix_complex_float_alloc_from_matrix(). More... | |
| void | set_identity () |
| C++ version of gsl_matrix_complex_float_set_identity(). More... | |
| int | swap_rows (size_t const i, size_t const j) |
| C++ version of gsl_matrix_complex_float_swap_rows(). More... | |
| int | swap_columns (size_t const i, size_t const j) |
| C++ version of gsl_matrix_complex_float_swap_columns(). More... | |
| int | swap_rowcol (size_t const i, size_t const j) |
| C++ version of gsl_matrix_complex_float_swap_rowcol(). More... | |
| int | transpose () |
| C++ version of gsl_matrix_complex_float_transpose(). More... | |
| int | transpose_memcpy (matrix_complex_float const &src) |
| C++ version of gsl_matrix_complex_float_transpose_memcpy(). More... | |
| int | mul_elements (matrix_complex_float const &b) |
| C++ version of gsl_matrix_complex_float_mul_elements(). More... | |
| int | div_elements (matrix_complex_float const &b) |
| C++ version of gsl_matrix_complex_float_div_elements(). More... | |
| int | conjtrans_memcpy (matrix_complex_float const &src) |
| C++ version of gsl_matrix_complex_float_conjtrans_memcpy(). More... | |
| int | scale_rows (vector_complex_float const &x) |
| C++ version of gsl_matrix_complex_float_scale_rows(). More... | |
| int | scale_columns (vector_complex_float const &x) |
| C++ version of gsl_matrix_complex_float_scale_columns(). More... | |
| int | add_diagonal (complex_float const x) |
| C++ version of gsl_matrix_complex_float_add_diagonal(). More... | |
| int | get_row (vector_complex_float &v, size_t const i) const |
| C++ version of gsl_matrix_complex_float_get_row(). More... | |
| int | get_col (vector_complex_float &v, size_t const j) const |
| C++ version of gsl_matrix_complex_float_get_col(). More... | |
| int | set_row (size_t const i, vector_complex_float const &v) |
| C++ version of gsl_matrix_complex_float_set_row(). More... | |
| int | set_col (size_t const j, vector_complex_float const &v) |
| C++ version of gsl_matrix_complex_float_set_col(). More... | |
| vector_complex_float | operator[] (size_t const i) |
| This function allows us to use a matrix_complex_float like an array. More... | |
| vector_complex_float const | operator[] (size_t const i) const |
| This function allows us to use a matrix_complex_float like an array. More... | |
| int | permute (permutation &p) |
Permute the columns of this by permutation p. More... | |
Static Public Member Functions | |
| static matrix_complex_float | view_array (float *base, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_complex_float_view_array(). More... | |
| static matrix_complex_float | view_array_with_tda (float *base, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_complex_float_view_array_with_tda(). More... | |
| static matrix_complex_float | view_vector (vector_complex_float &v, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_complex_float_view_vector(). More... | |
| static matrix_complex_float | view_vector_with_tda (vector_complex_float &v, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_complex_float_view_vector_with_tda(). More... | |
| static matrix_complex_float const | const_view_array (float const *base, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_complex_float_const_view_array(). More... | |
| static matrix_complex_float const | const_view_array_with_tda (float const *base, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_complex_float_const_view_array_with_tda(). More... | |
| static matrix_complex_float const | const_view_vector (vector_complex_float const &v, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_complex_float_const_view_vector(). More... | |
| static matrix_complex_float const | const_view_vector_with_tda (vector_complex_float const &v, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_complex_float_const_view_vector_with_tda(). More... | |
| static matrix_complex_float const | view_array (float const *base, size_t const n1, size_t const n2) |
| Another C++ version of gsl_matrix_complex_float_const_view_array(). More... | |
| static matrix_complex_float const | view_array_with_tda (float const *base, size_t const n1, size_t const n2, size_t const tda) |
| Another C++ version of gsl_matrix_complex_float_const_view_array_with_tda(). More... | |
| static matrix_complex_float const | view_vector (vector_complex_float const &v, size_t const n1, size_t const n2) |
| Another C++ version of gsl_matrix_complex_float_const_view_vector(). More... | |
| static matrix_complex_float const | view_vector_with_tda (vector_complex_float const &v, size_t const n1, size_t const n2, size_t const tda) |
| Another C++ version of gsl_matrix_complex_float_const_view_vector_with_tda(). More... | |
| static matrix_complex_float | calloc (size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_complex_float_calloc(). More... | |
Private Attributes | |
| gsl_matrix_complex_float * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
This class handles matrix_complex_float objects as shared handles.
It models a random access container so that STL functions work with matrix_complex_float.
Note that matrix_views are implemented as matrix_complex_float objects here.
Note that in C++11 it is possible to iterate over the rows of a matrix using
Otherwise,
will achieve the same effect. But if the element pointed to by i is used more than once, do not use
because each call of operator->() creates a new and different vector_complex.
Definition at line 62 of file matrix_complex_float.hpp.
| typedef const_iterator_t<false> gsl::matrix_complex_float::const_iterator |
The const_iterator type.
Definition at line 585 of file matrix_complex_float.hpp.
The const_reverse_t type.
Definition at line 593 of file matrix_complex_float.hpp.
| typedef iterator_t<false> gsl::matrix_complex_float::iterator |
The iterator type.
Definition at line 589 of file matrix_complex_float.hpp.
| typedef iterator_t<true> gsl::matrix_complex_float::reverse_iterator |
The reverse_iterator type.
Definition at line 597 of file matrix_complex_float.hpp.
| typedef size_t gsl::matrix_complex_float::size_type |
A container must have a size_type.
Definition at line 601 of file matrix_complex_float.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 67 of file matrix_complex_float.hpp.
References ccgsl_pointer, and count.
Referenced by calloc(), const_submatrix(), const_view_array(), const_view_array_with_tda(), const_view_vector(), const_view_vector_with_tda(), operator=(), reset(), submatrix(), view_array(), view_array_with_tda(), view_vector(), and view_vector_with_tda().
|
inlineexplicit |
The default constructor creates a new matrix_complex_float with n1 rows and n2 columns.
| n1 | The number of rows in the matrix_complex_float |
| n2 | The number of columns in the matrix_complex_float |
Definition at line 78 of file matrix_complex_float.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
Could construct from a gsl_matrix_complex_float.
This is not usually a good idea. In this case you should not use gsl_matrix_complex_float_free() to deallocate the memory.
| v | The matrix_complex_float |
Definition at line 96 of file matrix_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 107 of file matrix_complex_float.hpp.
References ccgsl_pointer, count, gsl::exception::GSL_EBADLEN, row(), and set().
|
inline |
The copy constructor.
This shares the matrix_complex_float. Use clone() if you want a full copy.
| v | The matrix_complex_float to copy. |
Definition at line 140 of file matrix_complex_float.hpp.
References count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 178 of file matrix_complex_float.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The matrix_complex_float to move. |
Definition at line 196 of file matrix_complex_float.hpp.
References count.
|
inline |
C++ version of gsl_matrix_complex_float_alloc_from_block().
| b | The block_complex_float |
| offset | The offset within the block_complex_float |
| n1 | The number of rows in the matrix_complex_float |
| n2 | The number of columns in the matrix_complex_float |
| d2 | undocumented |
Definition at line 1301 of file matrix_complex_float.hpp.
References gsl::sf::mathieu::b(), ccgsl_pointer, and count.
|
inline |
C++ version of gsl_matrix_complex_float_alloc_from_matrix().
| m | The matrix_complex_float |
| k1 | the row of m to take as row zero |
| k2 | the column of m to take as column zero |
| n1 | The number of rows in the matrix_complex_float |
| n2 | The number of columns in the matrix_complex_float |
Definition at line 1319 of file matrix_complex_float.hpp.
References ccgsl_pointer, count, and get().
|
inline |
C++ version of gsl_matrix_complex_float_add().
| b | matrix_complex_float to add to this |
Definition at line 1190 of file matrix_complex_float.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_matrix_complex_float_add_constant().
| x | constant to add to each element of this |
Definition at line 1208 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_add_diagonal().
| x | A constant |
Definition at line 1411 of file matrix_complex_float.hpp.
References get().
|
inline |
Get iterator pointing to first vector_complex_float element.
Definition at line 607 of file matrix_complex_float.hpp.
|
inline |
Get iterator pointing to first vector_complex_float element.
Definition at line 614 of file matrix_complex_float.hpp.
|
inlinestatic |
C++ version of gsl_matrix_complex_float_calloc().
This constructs a matrix_complex_float object with entries initialised to zero.
| n1 | The number of rows in the matrix_complex_float |
| n2 | The number of columns in the matrix_complex_float |
Definition at line 1169 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inline |
The clone function.
Use this if you want a copy of the block_complex_float that does not share the underlying data.
Definition at line 167 of file matrix_complex_float.hpp.
|
inline |
C++ version of gsl_matrix_complex_float_column().
| j | A column index |
Definition at line 735 of file matrix_complex_float.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_complex_float_const_column().
| j | A column index |
Definition at line 1010 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_conjtrans_memcpy().
| src | Source matrix |
Definition at line 1390 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_const_column().
| j | A column index |
Definition at line 872 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_const_diagonal().
Definition at line 881 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_const_ptr().
| i | index of row |
| j | index of column |
Definition at line 1261 of file matrix_complex_float.hpp.
References CCGSL_MTY, ccgsl_pointer, get(), and gsl::exception::GSL_EINVAL.
|
inline |
C++ version of gsl_matrix_complex_float_const_row().
| i | A row index |
Definition at line 862 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_const_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 925 of file matrix_complex_float.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_complex_float_const_subdiagonal().
| k | An index |
k as a vector_complex_float Definition at line 891 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_const_submatrix().
| i | Index in this of first row of submatrix |
| j | Index in this of first column of submatrix |
| n1 | Number of rows of submatrix |
| n2 | Number of columns of submatrix |
Definition at line 852 of file matrix_complex_float.hpp.
References get(), and matrix_complex_float().
|
inline |
C++ version of gsl_matrix_complex_float_const_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 913 of file matrix_complex_float.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_complex_float_const_superdiagonal().
| k | An index |
k as a vector_complex_float Definition at line 901 of file matrix_complex_float.hpp.
References get().
|
inlinestatic |
C++ version of gsl_matrix_complex_float_const_view_array().
| base | An array of type float |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 937 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inlinestatic |
C++ version of gsl_matrix_complex_float_const_view_array_with_tda().
| base | An array of type float |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 951 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inlinestatic |
C++ version of gsl_matrix_complex_float_const_view_vector().
| v | A vector_complex_float |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 963 of file matrix_complex_float.hpp.
References gsl::vector_complex_float::get(), and matrix_complex_float().
|
inlinestatic |
C++ version of gsl_matrix_complex_float_const_view_vector_with_tda().
| v | A vector_complex_float |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 977 of file matrix_complex_float.hpp.
References gsl::vector_complex_float::get(), and matrix_complex_float().
|
inline |
C++ version of gsl_matrix_complex_float_diagonal().
Definition at line 745 of file matrix_complex_float.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_complex_float_const_diagonal().
Definition at line 1019 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_div_elements().
Divide each element of this by the corrsponding element of b
| b | Another matrix_complex_float |
Definition at line 1383 of file matrix_complex_float.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
Get iterator pointing beyond last vector_complex_float element.
Definition at line 622 of file matrix_complex_float.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing beyond last vector_complex_float element.
Definition at line 630 of file matrix_complex_float.hpp.
References ccgsl_pointer, and size1().
|
inline |
C++ version of gsl_matrix_complex_float_fprintf().
| stream | A C file stream |
| format | d, e, f or g |
Definition at line 1291 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_fread().
| stream | A C file stream |
Definition at line 1272 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_fscanf().
| stream | A C file stream |
Definition at line 1284 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_fwrite().
| stream | A C file stream |
Definition at line 1278 of file matrix_complex_float.hpp.
References get().
|
inline |
Get the gsl_matrix_complex_float.
Definition at line 1135 of file matrix_complex_float.hpp.
References ccgsl_pointer.
Referenced by add(), add_constant(), add_diagonal(), gsl::blas::cgemm(), gsl::blas::cgemv(), gsl::blas::cgerc(), gsl::blas::cgeru(), gsl::blas::chemm(), gsl::blas::chemv(), gsl::blas::cher(), gsl::blas::cher2(), gsl::blas::cher2k(), gsl::blas::cherk(), clone(), column(), conjtrans_memcpy(), const_column(), const_diagonal(), const_ptr(), const_row(), const_subcolumn(), const_subdiagonal(), const_submatrix(), const_subrow(), const_superdiagonal(), gsl::blas::csymm(), gsl::blas::csyr2k(), gsl::blas::csyrk(), gsl::blas::ctrmm(), gsl::blas::ctrmv(), gsl::blas::ctrsm(), gsl::blas::ctrsv(), gsl::spmatrix_complex_float::d2sp(), diagonal(), div_elements(), fprintf(), fread(), fscanf(), fwrite(), get_col(), get_row(), isneg(), isnonneg(), isnull(), ispos(), matrix_complex_float(), memcpy(), mul_elements(), permute(), ptr(), row(), scale(), scale_columns(), scale_rows(), set(), set_all(), set_col(), set_identity(), set_row(), set_zero(), gsl::spmatrix_complex_float::sp2d(), sub(), subcolumn(), subdiagonal(), submatrix(), subrow(), superdiagonal(), swap_columns(), swap_rowcol(), swap_rows(), transpose(), transpose_memcpy(), transpose_tricpy(), and tricpy().
|
inline |
Get the gsl_matrix_complex_float.
Definition at line 1140 of file matrix_complex_float.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_matrix_complex_float_get().
| i | index of row |
| j | index of column |
Definition at line 1235 of file matrix_complex_float.hpp.
References get().
Referenced by get().
|
inline |
C++ version of gsl_matrix_complex_float_get_col().
| v | A vector_complex_float |
| j | The index of the column |
Definition at line 1427 of file matrix_complex_float.hpp.
References get(), and gsl::vector_complex_float::get().
|
inline |
C++ version of gsl_matrix_complex_float_get_row().
| v | A vector_complex_float |
| i | The index of the row |
Definition at line 1419 of file matrix_complex_float.hpp.
References get(), and gsl::vector_complex_float::get().
|
inline |
C++ version of gsl_matrix_complex_float_isneg().
+1 or 0 according as elements are all negative or not Definition at line 1223 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_isnonneg().
+1 or 0 according as elements are all nonnegative or not Definition at line 1228 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_isnull().
+1 or 0 according as elements are all zero or not Definition at line 1213 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_ispos().
+1 or 0 according as elements are all positive or not Definition at line 1218 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_memcpy().
| src | source matrix_complex_float |
Definition at line 1184 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_mul_elements().
Multiply matrices elementwise.
| b | Another matrix_complex_float |
Definition at line 1375 of file matrix_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_matrix_complex_float Definition at line 1160 of file matrix_complex_float.hpp.
References ccgsl_pointer.
|
inline |
Move operator.
| v | The matrix_complex_float to move. |
Definition at line 205 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inline |
The assignment operator.
This makes a shared copy.
| v | The matrix_complex_float to copy |
Definition at line 148 of file matrix_complex_float.hpp.
References ccgsl_pointer, and count.
|
inline |
This function allows us to use a matrix_complex_float like an array.
Use with caution. Although matrix_complex_float[i][j] is possible, it is much less efficient than matrix_complex_float::set(). The effect is the same as row()
| i | The index of the row |
Definition at line 1453 of file matrix_complex_float.hpp.
References ccgsl_pointer, gsl::exception::GSL_EFAILED, and gsl::vector_complex_float::wrap_gsl_vector_complex_float_without_ownership().
|
inline |
This function allows us to use a matrix_complex_float like an array.
Use with caution. Although matrix_complex_float[i][j] is possible, it is much less efficient than matrix_complex_float::set(). The effect is the same as row()
| i | The index of the row |
Definition at line 1471 of file matrix_complex_float.hpp.
References ccgsl_pointer, gsl::exception::GSL_EFAILED, and gsl::vector_complex_float::wrap_gsl_vector_complex_float_without_ownership().
|
inline |
Permute the columns of this by permutation p.
| p | The permutation |
Definition at line 1488 of file matrix_complex_float.hpp.
References get(), and gsl::permutation::get().
|
inline |
C++ version of gsl_matrix_complex_float_ptr().
| i | index of row |
| j | index of column |
Definition at line 1249 of file matrix_complex_float.hpp.
References CCGSL_MTY, ccgsl_pointer, get(), and gsl::exception::GSL_EINVAL.
Referenced by gsl::matrix_complex_float::iterator_base< container, content, reverse_t >::operator->().
|
inline |
Get iterator pointing to first vector_complex_float element.
Definition at line 639 of file matrix_complex_float.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing to first vector_complex_float element.
Definition at line 647 of file matrix_complex_float.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing beyond last vector_complex_float element.
Definition at line 656 of file matrix_complex_float.hpp.
|
inline |
Get iterator pointing beyond last vector_complex_float element.
Definition at line 663 of file matrix_complex_float.hpp.
|
inline |
Stop sharing ownership of the shared pointer.
Definition at line 190 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inline |
C++ version of gsl_matrix_complex_float_row().
| i | A row index |
Definition at line 725 of file matrix_complex_float.hpp.
References get().
Referenced by matrix_complex_float().
|
inline |
Another C++ version of gsl_matrix_complex_float_const_row().
| i | A row index |
Definition at line 1000 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_scale().
| x | constant to multiply this by |
Definition at line 1202 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_scale_columns().
| x | A scalar |
Definition at line 1404 of file matrix_complex_float.hpp.
References get(), and gsl::vector_complex_float::get().
|
inline |
C++ version of gsl_matrix_complex_float_scale_rows().
| x | A scalar |
Definition at line 1397 of file matrix_complex_float.hpp.
References get(), and gsl::vector_complex_float::get().
|
inline |
C++ version of gsl_matrix_complex_float_set().
| i | index of row |
| j | index of column |
| x | new value for element |
Definition at line 1242 of file matrix_complex_float.hpp.
References get().
Referenced by matrix_complex_float().
|
inline |
C++ version of gsl_matrix_complex_float_set_all().
| x | The value to which all elements are set |
Definition at line 1178 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_set_col().
| j | The index of the column |
| v | A vector_complex_float |
Definition at line 1443 of file matrix_complex_float.hpp.
References get(), and gsl::vector_complex_float::get().
|
inline |
C++ version of gsl_matrix_complex_float_set_identity().
Definition at line 1333 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_set_row().
| i | The index of the row |
| v | A vector_complex_float |
Definition at line 1435 of file matrix_complex_float.hpp.
References get(), and gsl::vector_complex_float::get().
|
inline |
C++ version of gsl_matrix_complex_float_set_zero().
Definition at line 1173 of file matrix_complex_float.hpp.
References get().
|
inline |
The number of rows of the matrix_complex_float.
Definition at line 672 of file matrix_complex_float.hpp.
References ccgsl_pointer.
Referenced by clone(), gsl::matrix_complex_float::iterator_base< container, content, reverse_t >::decrement(), end(), gsl::matrix_complex_float::iterator_base< container, content, reverse_t >::increment(), and rbegin().
|
inline |
The number of columns of the matrix_complex_float.
Definition at line 677 of file matrix_complex_float.hpp.
References ccgsl_pointer.
Referenced by clone().
|
inline |
C++ version of gsl_matrix_complex_float_sub().
| b | matrix_complex_float to subtract from this |
Definition at line 1196 of file matrix_complex_float.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_matrix_complex_float_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 788 of file matrix_complex_float.hpp.
References get(), and gsl::rstat::n().
|
inline |
Another C++ version of gsl_matrix_complex_float_const_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 1063 of file matrix_complex_float.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_complex_float_subdiagonal().
| k | An index |
k as a vector_complex_float Definition at line 754 of file matrix_complex_float.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_complex_float_const_subdiagonal().
| k | An index |
k as a vector_complex_float Definition at line 1029 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_submatrix().
| i | Index in this of first row of submatrix |
| j | Index in this of first column of submatrix |
| n1 | Number of rows of submatrix |
| n2 | Number of columns of submatrix |
Definition at line 715 of file matrix_complex_float.hpp.
References get(), and matrix_complex_float().
|
inline |
Another C++ version of gsl_matrix_complex_float_const_submatrix().
| i | Index in this of first row of submatrix |
| j | Index in this of first column of submatrix |
| n1 | Number of rows of submatrix |
| n2 | Number of columns of submatrix |
Definition at line 990 of file matrix_complex_float.hpp.
References get(), and matrix_complex_float().
|
inline |
C++ version of gsl_matrix_complex_float_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 776 of file matrix_complex_float.hpp.
References get(), and gsl::rstat::n().
|
inline |
Another C++ version of gsl_matrix_complex_float_const_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 1051 of file matrix_complex_float.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_complex_float_superdiagonal().
| k | An index |
k as a vector_complex_float Definition at line 764 of file matrix_complex_float.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_complex_float_const_superdiagonal().
| k | An index |
k as a vector_complex_float Definition at line 1039 of file matrix_complex_float.hpp.
References get().
|
inline |
Swap two matrix_complex_float objects.
This works even if the matrix_complex_float objects have different sizes because it swaps pointers.
| m | The matrix_complex_float to swap with this. |
Definition at line 683 of file matrix_complex_float.hpp.
References ccgsl_pointer, and count.
|
inline |
C++ version of gsl_matrix_complex_float_swap_columns().
| i | Index of first column |
| j | Index of second column |
Definition at line 1347 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_swap_rowcol().
Swap row and column in place. Matrix must be square.
| i | index of row |
| j | index of column |
Definition at line 1356 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_swap_rows().
| i | Index of first row |
| j | Index of second row |
Definition at line 1340 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_transpose().
Definition at line 1361 of file matrix_complex_float.hpp.
References get().
|
inline |
C++ version of gsl_matrix_complex_float_transpose_memcpy().
| src | matrix_complex_float whose transpose it to be copied to this |
Definition at line 1367 of file matrix_complex_float.hpp.
References get().
|
inline |
Copy the upper or lower triangular part of matrix src to this.
| Uplo | Upper or lower triangle: CblasUpper or CBlasLower |
| Diag | Diagonal type |
| src | The matrix to copy from |
Definition at line 703 of file matrix_complex_float.hpp.
References get().
|
inline |
Copy the upper or lower triangular part of matrix src to this.
| Uplo | Upper or lower triangle: CblasUpper or CBlasLower |
| Diag | Diagonal type |
| src | The matrix to copy from |
Definition at line 693 of file matrix_complex_float.hpp.
References get().
|
inline |
Find if this is the only object sharing the gsl_matrix_complex_float.
true or falses according as this is the only matrix_complex_float object sharing the gsl_matrix_complex_float Definition at line 1146 of file matrix_complex_float.hpp.
References count.
|
inline |
Find how many matrix_complex_float objects share this pointer.
Definition at line 1151 of file matrix_complex_float.hpp.
References count.
|
inlinestatic |
C++ version of gsl_matrix_complex_float_view_array().
| base | An array of type float |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 800 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inlinestatic |
Another C++ version of gsl_matrix_complex_float_const_view_array().
| base | An array of type float |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1075 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inlinestatic |
C++ version of gsl_matrix_complex_float_view_array_with_tda().
| base | An array of type float |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 813 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inlinestatic |
Another C++ version of gsl_matrix_complex_float_const_view_array_with_tda().
| base | An array of type float |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1089 of file matrix_complex_float.hpp.
References matrix_complex_float().
|
inlinestatic |
C++ version of gsl_matrix_complex_float_view_vector().
| v | A vector_complex_float |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 825 of file matrix_complex_float.hpp.
References gsl::vector_complex_float::get(), and matrix_complex_float().
|
inlinestatic |
Another C++ version of gsl_matrix_complex_float_const_view_vector().
| v | A vector_complex_float |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1101 of file matrix_complex_float.hpp.
References gsl::vector_complex_float::get(), and matrix_complex_float().
|
inlinestatic |
C++ version of gsl_matrix_complex_float_view_vector_with_tda().
| v | A vector_complex_float |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 838 of file matrix_complex_float.hpp.
References gsl::vector_complex_float::get(), and matrix_complex_float().
|
inlinestatic |
Another C++ version of gsl_matrix_complex_float_const_view_vector_with_tda().
| v | A vector_complex_float |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1115 of file matrix_complex_float.hpp.
References gsl::vector_complex_float::get(), and matrix_complex_float().
|
private |
The shared pointer.
Definition at line 1124 of file matrix_complex_float.hpp.
Referenced by const_ptr(), end(), get(), matrix_complex_float(), operator bool(), operator=(), operator[](), ptr(), rbegin(), size1(), size2(), swap(), and ~matrix_complex_float().
|
private |
The shared reference count.
Definition at line 1128 of file matrix_complex_float.hpp.
Referenced by matrix_complex_float(), operator=(), swap(), unique(), use_count(), and ~matrix_complex_float().