|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
This class handles matrix_char objects as shared handles. More...
#include <matrix_char.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_char_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_char () | |
| The default constructor is only really useful for assigning to. More... | |
| matrix_char (size_t const n1, size_t const n2) | |
| This constructor creates a new matrix_char with n1 rows and n2 columns. More... | |
| matrix_char (gsl_matrix_char *v) | |
| Could construct from a gsl_matrix_char. More... | |
| matrix_char (std::initializer_list< std::initializer_list< char > > initializer_list) | |
| Could construct from a std::initializer_list in C++11. More... | |
| matrix_char (matrix_char const &v) | |
| The copy constructor. More... | |
| matrix_char & | operator= (matrix_char const &v) |
| The assignment operator. More... | |
| matrix_char | clone () const |
| The clone function. More... | |
| ~matrix_char () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| void | wrap_gsl_matrix_char_without_ownership (gsl_matrix_char *v) |
| This function is intended mainly for internal use. More... | |
| void | reset () |
| Stop sharing ownership of the shared pointer. More... | |
| matrix_char (matrix_char &&v) | |
| Move constructor. More... | |
| matrix_char & | operator= (matrix_char &&v) |
| Move operator. 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... | |
| 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... | |
| size_t | size1 () const |
| The number of rows of the matrix_char. More... | |
| size_t | size2 () const |
| The number of columns of the matrix_char. More... | |
| char * | data () |
| Give access to the data block_char. More... | |
| char const * | data () const |
| Give access to the data block_char. More... | |
| void | swap (matrix_char &m) |
| Swap two matrix_char objects. More... | |
| void | tricpy (CBLAS_UPLO_t Uplo, CBLAS_DIAG_t Diag, matrix_char 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_char const &src) |
Copy the upper or lower triangular part of matrix src to this. More... | |
| matrix_char | submatrix (size_t const i, size_t const j, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_char_submatrix(). More... | |
| vector_char | row (size_t const i) |
| C++ version of gsl_matrix_char_row(). More... | |
| vector_char | column (size_t const j) |
| C++ version of gsl_matrix_char_column(). More... | |
| vector_char | diagonal () |
| C++ version of gsl_matrix_char_diagonal(). More... | |
| vector_char | subdiagonal (size_t const k) |
| C++ version of gsl_matrix_char_subdiagonal(). More... | |
| vector_char | superdiagonal (size_t const k) |
| C++ version of gsl_matrix_char_superdiagonal(). More... | |
| vector_char | subrow (size_t const i, size_t const offset, size_t const n) |
| C++ version of gsl_matrix_char_subrow(). More... | |
| vector_char | subcolumn (size_t const j, size_t const offset, size_t const n) |
| C++ version of gsl_matrix_char_subcolumn(). More... | |
| matrix_char 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_char_const_submatrix(). More... | |
| vector_char const | const_row (size_t const i) const |
| C++ version of gsl_matrix_char_const_row(). More... | |
| vector_char const | const_column (size_t const j) const |
| C++ version of gsl_matrix_char_const_column(). More... | |
| vector_char const | const_diagonal () const |
| C++ version of gsl_matrix_char_const_diagonal(). More... | |
| vector_char const | const_subdiagonal (size_t const k) const |
| C++ version of gsl_matrix_char_const_subdiagonal(). More... | |
| vector_char const | const_superdiagonal (size_t const k) const |
| C++ version of gsl_matrix_char_const_superdiagonal(). More... | |
| vector_char const | const_subrow (size_t const i, size_t const offset, size_t const n) const |
| C++ version of gsl_matrix_char_const_subrow(). More... | |
| vector_char const | const_subcolumn (size_t const j, size_t const offset, size_t const n) const |
| C++ version of gsl_matrix_char_const_subcolumn(). More... | |
| matrix_char 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_char_const_submatrix(). More... | |
| vector_char const | row (size_t const i) const |
| Another C++ version of gsl_matrix_char_const_row(). More... | |
| vector_char const | column (size_t const j) const |
| Another C++ version of gsl_matrix_char_const_column(). More... | |
| vector_char const | diagonal () const |
| Another C++ version of gsl_matrix_char_const_diagonal(). More... | |
| vector_char const | subdiagonal (size_t const k) const |
| Another C++ version of gsl_matrix_char_const_subdiagonal(). More... | |
| vector_char const | superdiagonal (size_t const k) const |
| Another C++ version of gsl_matrix_char_const_superdiagonal(). More... | |
| vector_char const | subrow (size_t const i, size_t const offset, size_t const n) const |
| Another C++ version of gsl_matrix_char_const_subrow(). More... | |
| vector_char const | subcolumn (size_t const j, size_t const offset, size_t const n) const |
| Another C++ version of gsl_matrix_char_const_subcolumn(). More... | |
| gsl_matrix_char * | get () |
| Get the gsl_matrix_char. More... | |
| gsl_matrix_char const * | get () const |
| Get the gsl_matrix_char. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_matrix_char. More... | |
| size_t | use_count () const |
| Find how many matrix_char objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| void | set_zero () |
| C++ version of gsl_matrix_char_set_zero(). More... | |
| void | set_all (char x) |
| C++ version of gsl_matrix_char_set_all(). More... | |
| int | memcpy (matrix_char const &src) |
| C++ version of gsl_matrix_char_memcpy(). More... | |
| char | max () const |
| C++ version of gsl_matrix_char_max(). More... | |
| char | min () const |
| C++ version of gsl_matrix_char_min(). More... | |
| void | minmax (char *min_out, char *max_out) const |
| C++ version of gsl_matrix_char_minmax(). More... | |
| void | minmax (char &min_out, char &max_out) const |
| C++ version of gsl_matrix_char_minmax(). More... | |
| int | add (matrix_char const &b) |
| C++ version of gsl_matrix_char_add(). More... | |
| int | sub (matrix_char const &b) |
| C++ version of gsl_matrix_char_sub(). More... | |
| int | scale (char const x) |
| C++ version of gsl_matrix_char_scale(). More... | |
| int | add_constant (char const x) |
| C++ version of gsl_matrix_char_add_constant(). More... | |
| int | isnull () const |
| C++ version of gsl_matrix_char_isnull(). More... | |
| int | ispos () const |
| C++ version of gsl_matrix_char_ispos(). More... | |
| int | isneg () const |
| C++ version of gsl_matrix_char_isneg(). More... | |
| int | isnonneg () const |
| C++ version of gsl_matrix_char_isnonneg(). More... | |
| char | get (size_t const i, size_t const j) const |
| C++ version of gsl_matrix_char_get(). More... | |
| void | set (size_t const i, size_t const j, char x) |
| C++ version of gsl_matrix_char_set(). More... | |
| char * | ptr (size_t const i, size_t const j) |
| C++ version of gsl_matrix_char_ptr(). More... | |
| char const * | const_ptr (size_t const i, size_t const j) const |
| C++ version of gsl_matrix_char_const_ptr(). More... | |
| int | fread (FILE *stream) |
| C++ version of gsl_matrix_char_fread(). More... | |
| int | fwrite (FILE *stream) const |
| C++ version of gsl_matrix_char_fwrite(). More... | |
| int | fscanf (FILE *stream) |
| C++ version of gsl_matrix_char_fscanf(). More... | |
| int | fprintf (FILE *stream, char const *format) const |
| C++ version of gsl_matrix_char_fprintf(). More... | |
| matrix_char (block_char &b, size_t const offset, size_t const n1, size_t const n2, size_t const d2) | |
| C++ version of gsl_matrix_char_alloc_from_block(). More... | |
| matrix_char (matrix_char &m, size_t const k1, size_t const k2, size_t const n1, size_t const n2) | |
| C++ version of gsl_matrix_char_alloc_from_matrix(). More... | |
| void | set_identity () |
| C++ version of gsl_matrix_char_set_identity(). More... | |
| int | swap_rows (size_t const i, size_t const j) |
| C++ version of gsl_matrix_char_swap_rows(). More... | |
| int | swap_columns (size_t const i, size_t const j) |
| C++ version of gsl_matrix_char_swap_columns(). More... | |
| int | swap_rowcol (size_t const i, size_t const j) |
| C++ version of gsl_matrix_char_swap_rowcol(). More... | |
| int | transpose () |
| C++ version of gsl_matrix_char_transpose(). More... | |
| int | transpose_memcpy (matrix_char const &src) |
| C++ version of gsl_matrix_char_transpose_memcpy(). More... | |
| void | max_index (size_t &imax, size_t &jmax) const |
| C++ version of gsl_matrix_char_max_index(). More... | |
| void | min_index (size_t &imin, size_t &jmin) const |
| C++ version of gsl_matrix_char_min_index(). More... | |
| void | minmax_index (size_t &imin, size_t &jmin, size_t &imax, size_t &jmax) const |
| C++ version of gsl_matrix_char_minmax_index(). More... | |
| int | mul_elements (matrix_char const &b) |
| C++ version of gsl_matrix_char_mul_elements(). More... | |
| int | div_elements (matrix_char const &b) |
| C++ version of gsl_matrix_char_div_elements(). More... | |
| char | norm1 () const |
| C++ version of gsl_matrix_char_norm1(). More... | |
| int | scale_rows (vector_char const &x) |
| C++ version of gsl_matrix_char_scale_rows(). More... | |
| int | scale_columns (vector_char const &x) |
| C++ version of gsl_matrix_char_scale_columns(). More... | |
| int | add_diagonal (char const x) |
| C++ version of gsl_matrix_char_add_diagonal(). More... | |
| int | get_row (vector_char &v, size_t const i) const |
| C++ version of gsl_matrix_char_get_row(). More... | |
| int | get_col (vector_char &v, size_t const j) const |
| C++ version of gsl_matrix_char_get_col(). More... | |
| int | set_row (size_t const i, vector_char const &v) |
| C++ version of gsl_matrix_char_set_row(). More... | |
| int | set_col (size_t const j, vector_char const &v) |
| C++ version of gsl_matrix_char_set_col(). More... | |
| vector_char | operator[] (size_t const i) |
| This function allows us to use a matrix_char like an array. More... | |
| vector_char const | operator[] (size_t const i) const |
| This function allows us to use a matrix_char like an array. More... | |
| int | permute (permutation &p) |
Permute the columns of this by permutation p. More... | |
Static Public Member Functions | |
| static matrix_char | view_array (char *base, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_char_view_array(). More... | |
| static matrix_char | view_array_with_tda (char *base, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_char_view_array_with_tda(). More... | |
| static matrix_char | view_vector (vector_char &v, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_char_view_vector(). More... | |
| static matrix_char | view_vector_with_tda (vector_char &v, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_char_view_vector_with_tda(). More... | |
| static matrix_char const | const_view_array (char const *base, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_char_const_view_array(). More... | |
| static matrix_char const | const_view_array_with_tda (char const *base, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_char_const_view_array_with_tda(). More... | |
| static matrix_char const | const_view_vector (vector_char const &v, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_char_const_view_vector(). More... | |
| static matrix_char const | const_view_vector_with_tda (vector_char const &v, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_char_const_view_vector_with_tda(). More... | |
| static matrix_char const | view_array (char const *base, size_t const n1, size_t const n2) |
| Another C++ version of gsl_matrix_char_const_view_array(). More... | |
| static matrix_char const | view_array_with_tda (char const *base, size_t const n1, size_t const n2, size_t const tda) |
| Another C++ version of gsl_matrix_char_const_view_array_with_tda(). More... | |
| static matrix_char const | view_vector (vector_char const &v, size_t const n1, size_t const n2) |
| Another C++ version of gsl_matrix_char_const_view_vector(). More... | |
| static matrix_char const | view_vector_with_tda (vector_char const &v, size_t const n1, size_t const n2, size_t const tda) |
| Another C++ version of gsl_matrix_char_const_view_vector_with_tda(). More... | |
| static matrix_char | calloc (size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_char_calloc(). More... | |
Private Attributes | |
| bool | owns_data |
| Used to allow a vector that does not own its data. More... | |
| gsl_matrix_char * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
This class handles matrix_char objects as shared handles.
It models a random access container so that STL functions work with matrix_char.
Note that matrix_char_views are implemented as matrix_char objects here.
Note that in C++11 it is possible to iterate over the rows of a matrix_char 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_char.
Definition at line 58 of file matrix_char.hpp.
| typedef const_iterator_t<false> gsl::matrix_char::const_iterator |
The const_iterator type.
Definition at line 609 of file matrix_char.hpp.
| typedef const_iterator_t<true> gsl::matrix_char::const_reverse_iterator |
The const_reverse_t type.
Definition at line 617 of file matrix_char.hpp.
| typedef iterator_t<false> gsl::matrix_char::iterator |
The iterator type.
Definition at line 613 of file matrix_char.hpp.
| typedef iterator_t<true> gsl::matrix_char::reverse_iterator |
The reverse_iterator type.
Definition at line 621 of file matrix_char.hpp.
| typedef size_t gsl::matrix_char::size_type |
A container must have a size_type.
Definition at line 625 of file matrix_char.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 63 of file matrix_char.hpp.
References ccgsl_pointer, count, and owns_data.
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 |
This constructor creates a new matrix_char with n1 rows and n2 columns.
| n1 | The number of rows in the matrix_char |
| n2 | The number of columns in the matrix_char |
Definition at line 75 of file matrix_char.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
Could construct from a gsl_matrix_char.
This is not usually a good idea. In this case you should not use gsl_matrix_char_free() to deallocate the memory.
| v | The matrix_char |
Definition at line 93 of file matrix_char.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 104 of file matrix_char.hpp.
References ccgsl_pointer, count, gsl::exception::GSL_EBADLEN, row(), and set().
|
inline |
The copy constructor.
This shares the matrix_char. Use clone() if you want a full copy.
| v | The matrix_char to copy. |
Definition at line 137 of file matrix_char.hpp.
References count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 177 of file matrix_char.hpp.
References ccgsl_pointer, count, and owns_data.
|
inline |
Move constructor.
| v | The matrix_char to move. |
Definition at line 219 of file matrix_char.hpp.
References count.
|
inline |
C++ version of gsl_matrix_char_alloc_from_block().
| b | The block_char |
| offset | The offset within the block_char |
| n1 | The number of rows in the matrix_char |
| n2 | The number of columns in the matrix_char |
| d2 | undocumented |
Definition at line 1371 of file matrix_char.hpp.
References gsl::sf::mathieu::b(), ccgsl_pointer, and count.
|
inline |
C++ version of gsl_matrix_char_alloc_from_matrix().
| m | The matrix_char |
| 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_char |
| n2 | The number of columns in the matrix_char |
Definition at line 1389 of file matrix_char.hpp.
References ccgsl_pointer, count, and get().
|
inline |
C++ version of gsl_matrix_char_add().
| b | matrix_char to add to this |
Definition at line 1269 of file matrix_char.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_matrix_char_add_constant().
| x | constant to add to each element of this |
Definition at line 1287 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_add_diagonal().
| x | A constant |
Definition at line 1527 of file matrix_char.hpp.
References get().
|
inline |
Get iterator pointing to first vector_char element.
Definition at line 631 of file matrix_char.hpp.
|
inline |
Get iterator pointing to first vector_char element.
Definition at line 638 of file matrix_char.hpp.
|
inlinestatic |
C++ version of gsl_matrix_char_calloc().
This constructs a matrix_char object with entries initialised to zero.
| n1 | The number of rows in the matrix_char |
| n2 | The number of columns in the matrix_char |
Definition at line 1224 of file matrix_char.hpp.
References matrix_char().
|
inline |
The clone function.
Use this if you want a copy of the block_char that does not share the underlying data.
Definition at line 166 of file matrix_char.hpp.
|
inline |
C++ version of gsl_matrix_char_column().
| j | A column index |
Definition at line 786 of file matrix_char.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_char_const_column().
| j | A column index |
Definition at line 1009 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_const_column().
| j | A column index |
Definition at line 923 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_const_diagonal().
Definition at line 932 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_const_ptr().
| i | index of row |
| j | index of column |
Definition at line 1335 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_const_row().
| i | A row index |
Definition at line 913 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_const_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 976 of file matrix_char.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_char_const_subdiagonal().
| k | An index |
k as a vector_char Definition at line 942 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_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 903 of file matrix_char.hpp.
References get(), and matrix_char().
|
inline |
C++ version of gsl_matrix_char_const_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 964 of file matrix_char.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_char_const_superdiagonal().
| k | An index |
k as a vector_char Definition at line 952 of file matrix_char.hpp.
References get().
|
inlinestatic |
C++ version of gsl_matrix_char_const_view_array().
| base | An array of type char |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1074 of file matrix_char.hpp.
References matrix_char().
|
inlinestatic |
C++ version of gsl_matrix_char_const_view_array_with_tda().
| base | An array of type char |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1088 of file matrix_char.hpp.
References matrix_char().
|
inlinestatic |
C++ version of gsl_matrix_char_const_view_vector().
| v | A vector_char |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1100 of file matrix_char.hpp.
References gsl::vector_char::get(), and matrix_char().
|
inlinestatic |
C++ version of gsl_matrix_char_const_view_vector_with_tda().
| v | A vector_char |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1114 of file matrix_char.hpp.
References gsl::vector_char::get(), and matrix_char().
|
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 matrix_char size2 and tda are not equal. However, new matrix_char objects are always initialised to have tda and size2 equal.
Definition at line 709 of file matrix_char.hpp.
References ccgsl_pointer.
|
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 matrix_char size1 and tda are not equal. However, new matrix_char objects are always initialised to have tda and size2 equal.
Definition at line 723 of file matrix_char.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_matrix_char_diagonal().
Definition at line 796 of file matrix_char.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_char_const_diagonal().
Definition at line 1018 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_div_elements().
Divide each element of this by the corrsponding element of b
| b | Another matrix_char |
Definition at line 1500 of file matrix_char.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
Get iterator pointing beyond last vector_char element.
Definition at line 646 of file matrix_char.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing beyond last vector_char element.
Definition at line 654 of file matrix_char.hpp.
References ccgsl_pointer, and size1().
|
inline |
C++ version of gsl_matrix_char_fprintf().
| stream | A C file stream |
| format | d, e, f or g |
Definition at line 1361 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_fread().
| stream | A C file stream |
Definition at line 1342 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_fscanf().
| stream | A C file stream |
Definition at line 1354 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_fwrite().
| stream | A C file stream |
Definition at line 1348 of file matrix_char.hpp.
References get().
|
inline |
Get the gsl_matrix_char.
Definition at line 1190 of file matrix_char.hpp.
References ccgsl_pointer.
Referenced by add(), add_constant(), add_diagonal(), clone(), column(), const_column(), const_diagonal(), const_ptr(), const_row(), const_subcolumn(), const_subdiagonal(), const_submatrix(), const_subrow(), const_superdiagonal(), gsl::spmatrix_char::d2sp(), diagonal(), div_elements(), fprintf(), fread(), fscanf(), fwrite(), get_col(), get_row(), isneg(), isnonneg(), isnull(), ispos(), matrix_char(), max(), max_index(), memcpy(), min(), min_index(), minmax(), minmax_index(), mul_elements(), norm1(), permute(), ptr(), row(), scale(), scale_columns(), scale_rows(), set(), set_all(), set_col(), set_identity(), set_row(), set_zero(), gsl::spmatrix_char::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_char.
Definition at line 1195 of file matrix_char.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_matrix_char_get().
| i | index of row |
| j | index of column |
Definition at line 1314 of file matrix_char.hpp.
References get().
Referenced by get().
|
inline |
C++ version of gsl_matrix_char_get_col().
| v | A vector_char |
| j | The index of the column |
Definition at line 1543 of file matrix_char.hpp.
References get(), and gsl::vector_char::get().
|
inline |
C++ version of gsl_matrix_char_get_row().
| v | A vector_char |
| i | The index of the row |
Definition at line 1535 of file matrix_char.hpp.
References get(), and gsl::vector_char::get().
|
inline |
C++ version of gsl_matrix_char_isneg().
+1 or 0 according as elements are all negative or not Definition at line 1302 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_isnonneg().
+1 or 0 according as elements are all nonnegative or not Definition at line 1307 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_isnull().
+1 or 0 according as elements are all zero or not Definition at line 1292 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_ispos().
+1 or 0 according as elements are all positive or not Definition at line 1297 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_max().
Definition at line 1244 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_max_index().
| imax | row index of the first maximum element in the matrix_char |
| jmax | column index of the first maximum element in the matrix_char |
Definition at line 1468 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_memcpy().
| src | source matrix_char |
Definition at line 1239 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_min().
Definition at line 1249 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_min_index().
| imin | row index of the first minimum element in the matrix_char |
| jmin | column index of the first minimum element in the matrix_char |
Definition at line 1475 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_minmax().
| min_out | minimum element of matrix_char |
| max_out | maximum element of matrix_char |
Definition at line 1262 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_minmax().
| min_out | minimum element of matrix_char |
| max_out | maximum element of matrix_char |
Definition at line 1255 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_minmax_index().
| imin | row index of the first minimum element in the matrix_char |
| jmin | column index of the first minimum element in the matrix_char |
| imax | row index of the first maximum element in the matrix_char |
| jmax | column index of the first maximum element in the matrix_char |
Definition at line 1484 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_mul_elements().
Multiply matrices elementwise.
| b | Another matrix_char |
Definition at line 1492 of file matrix_char.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_matrix_char_norm1().
Definition at line 1506 of file matrix_char.hpp.
References get().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_matrix_char Definition at line 1215 of file matrix_char.hpp.
References ccgsl_pointer.
|
inline |
Move operator.
| v | The matrix_char to move. |
Definition at line 229 of file matrix_char.hpp.
References matrix_char().
|
inline |
The assignment operator.
This makes a shared copy.
| v | The matrix_char to copy |
Definition at line 146 of file matrix_char.hpp.
References ccgsl_pointer, count, and owns_data.
|
inline |
This function allows us to use a matrix_char like an array.
Use with caution. Although matrix_char[i][j] is possible, it is less efficient than matrix_char::set(). The effect is the same as row().
| i | The index of the row |
Definition at line 1569 of file matrix_char.hpp.
References ccgsl_pointer, gsl::exception::GSL_EFAULT, gsl::exception::GSL_EINVAL, size1(), and gsl::vector_char::wrap_gsl_vector_char_without_ownership().
|
inline |
This function allows us to use a matrix_char like an array.
Use with caution. Although matrix_char[i][j] is possible, it is much less efficient than matrix_char::set(). The effect is the same as row()
| i | The index of the row |
Definition at line 1603 of file matrix_char.hpp.
References ccgsl_pointer, gsl::exception::GSL_EFAULT, and gsl::vector_char::wrap_gsl_vector_char_without_ownership().
|
inline |
Permute the columns of this by permutation p.
| p | The permutation |
Definition at line 1620 of file matrix_char.hpp.
References get(), and gsl::permutation::get().
|
inline |
C++ version of gsl_matrix_char_ptr().
| i | index of row |
| j | index of column |
Definition at line 1328 of file matrix_char.hpp.
References get().
Referenced by gsl::matrix_char::iterator_base< container, content, reverse_t >::operator->().
|
inline |
Get iterator pointing to first vector_char element.
Definition at line 663 of file matrix_char.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing to first vector_char element.
Definition at line 671 of file matrix_char.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing beyond last vector_char element.
Definition at line 680 of file matrix_char.hpp.
|
inline |
Get iterator pointing beyond last vector_char element.
Definition at line 687 of file matrix_char.hpp.
|
inline |
Stop sharing ownership of the shared pointer.
Definition at line 213 of file matrix_char.hpp.
References matrix_char().
|
inline |
C++ version of gsl_matrix_char_row().
| i | A row index |
Definition at line 776 of file matrix_char.hpp.
References get().
Referenced by matrix_char().
|
inline |
Another C++ version of gsl_matrix_char_const_row().
| i | A row index |
Definition at line 999 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_scale().
| x | constant to multiply this by |
Definition at line 1281 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_scale_columns().
| x | A scalar |
Definition at line 1520 of file matrix_char.hpp.
References get(), and gsl::vector_char::get().
|
inline |
C++ version of gsl_matrix_char_scale_rows().
| x | A scalar |
Definition at line 1513 of file matrix_char.hpp.
References get(), and gsl::vector_char::get().
|
inline |
C++ version of gsl_matrix_char_set().
| i | index of row |
| j | index of column |
| x | new value for element |
Definition at line 1321 of file matrix_char.hpp.
References get().
Referenced by matrix_char().
|
inline |
C++ version of gsl_matrix_char_set_all().
| x | The value to which all elements are set |
Definition at line 1233 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_set_col().
| j | The index of the column |
| v | A vector_char |
Definition at line 1559 of file matrix_char.hpp.
References get(), and gsl::vector_char::get().
|
inline |
C++ version of gsl_matrix_char_set_identity().
Definition at line 1403 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_set_row().
| i | The index of the row |
| v | A vector_char |
Definition at line 1551 of file matrix_char.hpp.
References get(), and gsl::vector_char::get().
|
inline |
C++ version of gsl_matrix_char_set_zero().
Definition at line 1228 of file matrix_char.hpp.
References get().
|
inline |
The number of rows of the matrix_char.
Definition at line 696 of file matrix_char.hpp.
References ccgsl_pointer.
Referenced by clone(), gsl::matrix_char::iterator_base< container, content, reverse_t >::decrement(), end(), gsl::matrix_char::iterator_base< container, content, reverse_t >::increment(), operator[](), and rbegin().
|
inline |
The number of columns of the matrix_char.
Definition at line 701 of file matrix_char.hpp.
References ccgsl_pointer.
Referenced by clone().
|
inline |
C++ version of gsl_matrix_char_sub().
| b | matrix_char to subtract from this |
Definition at line 1275 of file matrix_char.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_matrix_char_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 839 of file matrix_char.hpp.
References get(), and gsl::rstat::n().
|
inline |
Another C++ version of gsl_matrix_char_const_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 1062 of file matrix_char.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_char_subdiagonal().
| k | An index |
k as a vector_char Definition at line 805 of file matrix_char.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_char_const_subdiagonal().
| k | An index |
k as a vector_char Definition at line 1028 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_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 766 of file matrix_char.hpp.
References get(), and matrix_char().
|
inline |
Another C++ version of gsl_matrix_char_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 989 of file matrix_char.hpp.
References get(), and matrix_char().
|
inline |
C++ version of gsl_matrix_char_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 827 of file matrix_char.hpp.
References get(), and gsl::rstat::n().
|
inline |
Another C++ version of gsl_matrix_char_const_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 1050 of file matrix_char.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_char_superdiagonal().
| k | An index |
k as a vector_char Definition at line 815 of file matrix_char.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_char_const_superdiagonal().
| k | An index |
k as a vector_char Definition at line 1038 of file matrix_char.hpp.
References get().
|
inline |
Swap two matrix_char objects.
This works even if the matrix_char objects have different sizes because it swaps pointers.
| m | The matrix_char to swap with this. |
Definition at line 735 of file matrix_char.hpp.
References ccgsl_pointer, and count.
|
inline |
C++ version of gsl_matrix_char_swap_columns().
| i | Index of first column |
| j | Index of second column |
Definition at line 1417 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_swap_rowcol().
Swap row and column in place. Matrix must be square.
| i | index of row |
| j | index of column |
Definition at line 1425 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_swap_rows().
| i | Index of first row |
| j | Index of second row |
Definition at line 1410 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_transpose().
Definition at line 1430 of file matrix_char.hpp.
References get().
|
inline |
C++ version of gsl_matrix_char_transpose_memcpy().
| src | matrix_char whose transpose it to be copied to this |
Definition at line 1436 of file matrix_char.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 754 of file matrix_char.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 745 of file matrix_char.hpp.
References get().
|
inline |
Find if this is the only object sharing the gsl_matrix_char.
true or falses according as this is the only matrix_char object sharing the gsl_matrix_char Definition at line 1201 of file matrix_char.hpp.
References count.
|
inline |
Find how many matrix_char objects share this pointer.
Definition at line 1206 of file matrix_char.hpp.
References count.
|
inlinestatic |
C++ version of gsl_matrix_char_view_array().
| base | An array of type char |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 851 of file matrix_char.hpp.
References matrix_char().
|
inlinestatic |
Another C++ version of gsl_matrix_char_const_view_array().
| base | An array of type char |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1126 of file matrix_char.hpp.
References matrix_char().
|
inlinestatic |
C++ version of gsl_matrix_char_view_array_with_tda().
| base | An array of type char |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 864 of file matrix_char.hpp.
References matrix_char().
|
inlinestatic |
Another C++ version of gsl_matrix_char_const_view_array_with_tda().
| base | An array of type char |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1140 of file matrix_char.hpp.
References matrix_char().
|
inlinestatic |
C++ version of gsl_matrix_char_view_vector().
| v | A vector_char |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 876 of file matrix_char.hpp.
References gsl::vector_char::get(), and matrix_char().
|
inlinestatic |
Another C++ version of gsl_matrix_char_const_view_vector().
| v | A vector_char |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1152 of file matrix_char.hpp.
References gsl::vector_char::get(), and matrix_char().
|
inlinestatic |
C++ version of gsl_matrix_char_view_vector_with_tda().
| v | A vector_char |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 889 of file matrix_char.hpp.
References gsl::vector_char::get(), and matrix_char().
|
inlinestatic |
Another C++ version of gsl_matrix_char_const_view_vector_with_tda().
| v | A vector_char |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1166 of file matrix_char.hpp.
References gsl::vector_char::get(), and matrix_char().
|
inline |
This function is intended mainly for internal use.
It allows this to point to a gsl_matrix_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::matrix_char* argument to one that takes a gsl_matrix_char* argument.
| v | The gsl_matrix_char |
Definition at line 197 of file matrix_char.hpp.
References ccgsl_pointer, count, and owns_data.
|
private |
The shared pointer.
Definition at line 1179 of file matrix_char.hpp.
Referenced by data(), end(), get(), matrix_char(), operator bool(), operator=(), operator[](), rbegin(), size1(), size2(), swap(), wrap_gsl_matrix_char_without_ownership(), and ~matrix_char().
|
private |
The shared reference count.
Definition at line 1183 of file matrix_char.hpp.
Referenced by matrix_char(), operator=(), swap(), unique(), use_count(), wrap_gsl_matrix_char_without_ownership(), and ~matrix_char().
|
private |
Used to allow a vector that does not own its data.
Definition at line 1175 of file matrix_char.hpp.
Referenced by matrix_char(), operator=(), wrap_gsl_matrix_char_without_ownership(), and ~matrix_char().