|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
This class handles matrix_ushort objects as shared handles. More...
#include <matrix_ushort.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_ushort_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_ushort () | |
| The default constructor is only really useful for assigning to. More... | |
| matrix_ushort (size_t const n1, size_t const n2) | |
| This constructor creates a new matrix_ushort with n1 rows and n2 columns. More... | |
| matrix_ushort (gsl_matrix_ushort *v) | |
| Could construct from a gsl_matrix_ushort. More... | |
| matrix_ushort (std::initializer_list< std::initializer_list< unsigned short > > initializer_list) | |
| Could construct from a std::initializer_list in C++11. More... | |
| matrix_ushort (matrix_ushort const &v) | |
| The copy constructor. More... | |
| matrix_ushort & | operator= (matrix_ushort const &v) |
| The assignment operator. More... | |
| matrix_ushort | clone () const |
| The clone function. More... | |
| ~matrix_ushort () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| void | wrap_gsl_matrix_ushort_without_ownership (gsl_matrix_ushort *v) |
| This function is intended mainly for internal use. More... | |
| void | reset () |
| Stop sharing ownership of the shared pointer. More... | |
| matrix_ushort (matrix_ushort &&v) | |
| Move constructor. More... | |
| matrix_ushort & | operator= (matrix_ushort &&v) |
| Move operator. More... | |
| iterator | begin () |
| Get iterator pointing to first vector_ushort element. More... | |
| const_iterator | begin () const |
| Get iterator pointing to first vector_ushort element. More... | |
| iterator | end () |
| Get iterator pointing beyond last vector_ushort element. More... | |
| const_iterator | end () const |
| Get iterator pointing beyond last vector_ushort element. More... | |
| reverse_iterator | rbegin () |
| Get iterator pointing to first vector_ushort element. More... | |
| const_reverse_iterator | rbegin () const |
| Get iterator pointing to first vector_ushort element. More... | |
| reverse_iterator | rend () |
| Get iterator pointing beyond last vector_ushort element. More... | |
| const_reverse_iterator | rend () const |
| Get iterator pointing beyond last vector_ushort element. More... | |
| size_t | size1 () const |
| The number of rows of the matrix_ushort. More... | |
| size_t | size2 () const |
| The number of columns of the matrix_ushort. More... | |
| unsigned short * | data () |
| Give access to the data block_ushort. More... | |
| unsigned short const * | data () const |
| Give access to the data block_ushort. More... | |
| void | swap (matrix_ushort &m) |
| Swap two matrix_ushort objects. More... | |
| void | tricpy (CBLAS_UPLO_t Uplo, CBLAS_DIAG_t Diag, matrix_ushort 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_ushort const &src) |
Copy the upper or lower triangular part of matrix src to this. More... | |
| matrix_ushort | submatrix (size_t const i, size_t const j, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_ushort_submatrix(). More... | |
| vector_ushort | row (size_t const i) |
| C++ version of gsl_matrix_ushort_row(). More... | |
| vector_ushort | column (size_t const j) |
| C++ version of gsl_matrix_ushort_column(). More... | |
| vector_ushort | diagonal () |
| C++ version of gsl_matrix_ushort_diagonal(). More... | |
| vector_ushort | subdiagonal (size_t const k) |
| C++ version of gsl_matrix_ushort_subdiagonal(). More... | |
| vector_ushort | superdiagonal (size_t const k) |
| C++ version of gsl_matrix_ushort_superdiagonal(). More... | |
| vector_ushort | subrow (size_t const i, size_t const offset, size_t const n) |
| C++ version of gsl_matrix_ushort_subrow(). More... | |
| vector_ushort | subcolumn (size_t const j, size_t const offset, size_t const n) |
| C++ version of gsl_matrix_ushort_subcolumn(). More... | |
| matrix_ushort 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_ushort_const_submatrix(). More... | |
| vector_ushort const | const_row (size_t const i) const |
| C++ version of gsl_matrix_ushort_const_row(). More... | |
| vector_ushort const | const_column (size_t const j) const |
| C++ version of gsl_matrix_ushort_const_column(). More... | |
| vector_ushort const | const_diagonal () const |
| C++ version of gsl_matrix_ushort_const_diagonal(). More... | |
| vector_ushort const | const_subdiagonal (size_t const k) const |
| C++ version of gsl_matrix_ushort_const_subdiagonal(). More... | |
| vector_ushort const | const_superdiagonal (size_t const k) const |
| C++ version of gsl_matrix_ushort_const_superdiagonal(). More... | |
| vector_ushort const | const_subrow (size_t const i, size_t const offset, size_t const n) const |
| C++ version of gsl_matrix_ushort_const_subrow(). More... | |
| vector_ushort const | const_subcolumn (size_t const j, size_t const offset, size_t const n) const |
| C++ version of gsl_matrix_ushort_const_subcolumn(). More... | |
| matrix_ushort 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_ushort_const_submatrix(). More... | |
| vector_ushort const | row (size_t const i) const |
| Another C++ version of gsl_matrix_ushort_const_row(). More... | |
| vector_ushort const | column (size_t const j) const |
| Another C++ version of gsl_matrix_ushort_const_column(). More... | |
| vector_ushort const | diagonal () const |
| Another C++ version of gsl_matrix_ushort_const_diagonal(). More... | |
| vector_ushort const | subdiagonal (size_t const k) const |
| Another C++ version of gsl_matrix_ushort_const_subdiagonal(). More... | |
| vector_ushort const | superdiagonal (size_t const k) const |
| Another C++ version of gsl_matrix_ushort_const_superdiagonal(). More... | |
| vector_ushort const | subrow (size_t const i, size_t const offset, size_t const n) const |
| Another C++ version of gsl_matrix_ushort_const_subrow(). More... | |
| vector_ushort const | subcolumn (size_t const j, size_t const offset, size_t const n) const |
| Another C++ version of gsl_matrix_ushort_const_subcolumn(). More... | |
| gsl_matrix_ushort * | get () |
| Get the gsl_matrix_ushort. More... | |
| gsl_matrix_ushort const * | get () const |
| Get the gsl_matrix_ushort. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_matrix_ushort. More... | |
| size_t | use_count () const |
| Find how many matrix_ushort objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| void | set_zero () |
| C++ version of gsl_matrix_ushort_set_zero(). More... | |
| void | set_all (unsigned short x) |
| C++ version of gsl_matrix_ushort_set_all(). More... | |
| int | memcpy (matrix_ushort const &src) |
| C++ version of gsl_matrix_ushort_memcpy(). More... | |
| unsigned short | max () const |
| C++ version of gsl_matrix_ushort_max(). More... | |
| unsigned short | min () const |
| C++ version of gsl_matrix_ushort_min(). More... | |
| void | minmax (unsigned short *min_out, unsigned short *max_out) const |
| C++ version of gsl_matrix_ushort_minmax(). More... | |
| void | minmax (unsigned short &min_out, unsigned short &max_out) const |
| C++ version of gsl_matrix_ushort_minmax(). More... | |
| int | add (matrix_ushort const &b) |
| C++ version of gsl_matrix_ushort_add(). More... | |
| int | sub (matrix_ushort const &b) |
| C++ version of gsl_matrix_ushort_sub(). More... | |
| int | scale (unsigned short const x) |
| C++ version of gsl_matrix_ushort_scale(). More... | |
| int | add_constant (unsigned short const x) |
| C++ version of gsl_matrix_ushort_add_constant(). More... | |
| int | isnull () const |
| C++ version of gsl_matrix_ushort_isnull(). More... | |
| int | ispos () const |
| C++ version of gsl_matrix_ushort_ispos(). More... | |
| int | isneg () const |
| C++ version of gsl_matrix_ushort_isneg(). More... | |
| int | isnonneg () const |
| C++ version of gsl_matrix_ushort_isnonneg(). More... | |
| unsigned short | get (size_t const i, size_t const j) const |
| C++ version of gsl_matrix_ushort_get(). More... | |
| void | set (size_t const i, size_t const j, unsigned short x) |
| C++ version of gsl_matrix_ushort_set(). More... | |
| unsigned short * | ptr (size_t const i, size_t const j) |
| C++ version of gsl_matrix_ushort_ptr(). More... | |
| unsigned short const * | const_ptr (size_t const i, size_t const j) const |
| C++ version of gsl_matrix_ushort_const_ptr(). More... | |
| int | fread (FILE *stream) |
| C++ version of gsl_matrix_ushort_fread(). More... | |
| int | fwrite (FILE *stream) const |
| C++ version of gsl_matrix_ushort_fwrite(). More... | |
| int | fscanf (FILE *stream) |
| C++ version of gsl_matrix_ushort_fscanf(). More... | |
| int | fprintf (FILE *stream, char const *format) const |
| C++ version of gsl_matrix_ushort_fprintf(). More... | |
| matrix_ushort (block_ushort &b, size_t const offset, size_t const n1, size_t const n2, size_t const d2) | |
| C++ version of gsl_matrix_ushort_alloc_from_block(). More... | |
| matrix_ushort (matrix_ushort &m, size_t const k1, size_t const k2, size_t const n1, size_t const n2) | |
| C++ version of gsl_matrix_ushort_alloc_from_matrix(). More... | |
| void | set_identity () |
| C++ version of gsl_matrix_ushort_set_identity(). More... | |
| int | swap_rows (size_t const i, size_t const j) |
| C++ version of gsl_matrix_ushort_swap_rows(). More... | |
| int | swap_columns (size_t const i, size_t const j) |
| C++ version of gsl_matrix_ushort_swap_columns(). More... | |
| int | swap_rowcol (size_t const i, size_t const j) |
| C++ version of gsl_matrix_ushort_swap_rowcol(). More... | |
| int | transpose () |
| C++ version of gsl_matrix_ushort_transpose(). More... | |
| int | transpose_memcpy (matrix_ushort const &src) |
| C++ version of gsl_matrix_ushort_transpose_memcpy(). More... | |
| void | max_index (size_t &imax, size_t &jmax) const |
| C++ version of gsl_matrix_ushort_max_index(). More... | |
| void | min_index (size_t &imin, size_t &jmin) const |
| C++ version of gsl_matrix_ushort_min_index(). More... | |
| void | minmax_index (size_t &imin, size_t &jmin, size_t &imax, size_t &jmax) const |
| C++ version of gsl_matrix_ushort_minmax_index(). More... | |
| int | mul_elements (matrix_ushort const &b) |
| C++ version of gsl_matrix_ushort_mul_elements(). More... | |
| int | div_elements (matrix_ushort const &b) |
| C++ version of gsl_matrix_ushort_div_elements(). More... | |
| unsigned short | norm1 () const |
| C++ version of gsl_matrix_ushort_norm1(). More... | |
| int | scale_rows (vector_ushort const &x) |
| C++ version of gsl_matrix_ushort_scale_rows(). More... | |
| int | scale_columns (vector_ushort const &x) |
| C++ version of gsl_matrix_ushort_scale_columns(). More... | |
| int | add_diagonal (unsigned short const x) |
| C++ version of gsl_matrix_ushort_add_diagonal(). More... | |
| int | get_row (vector_ushort &v, size_t const i) const |
| C++ version of gsl_matrix_ushort_get_row(). More... | |
| int | get_col (vector_ushort &v, size_t const j) const |
| C++ version of gsl_matrix_ushort_get_col(). More... | |
| int | set_row (size_t const i, vector_ushort const &v) |
| C++ version of gsl_matrix_ushort_set_row(). More... | |
| int | set_col (size_t const j, vector_ushort const &v) |
| C++ version of gsl_matrix_ushort_set_col(). More... | |
| vector_ushort | operator[] (size_t const i) |
| This function allows us to use a matrix_ushort like an array. More... | |
| vector_ushort const | operator[] (size_t const i) const |
| This function allows us to use a matrix_ushort like an array. More... | |
| int | permute (permutation &p) |
Permute the columns of this by permutation p. More... | |
Static Public Member Functions | |
| static matrix_ushort | view_array (unsigned short *base, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_ushort_view_array(). More... | |
| static matrix_ushort | view_array_with_tda (unsigned short *base, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_ushort_view_array_with_tda(). More... | |
| static matrix_ushort | view_vector (vector_ushort &v, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_ushort_view_vector(). More... | |
| static matrix_ushort | view_vector_with_tda (vector_ushort &v, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_ushort_view_vector_with_tda(). More... | |
| static matrix_ushort const | const_view_array (unsigned short const *base, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_ushort_const_view_array(). More... | |
| static matrix_ushort const | const_view_array_with_tda (unsigned short const *base, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_ushort_const_view_array_with_tda(). More... | |
| static matrix_ushort const | const_view_vector (vector_ushort const &v, size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_ushort_const_view_vector(). More... | |
| static matrix_ushort const | const_view_vector_with_tda (vector_ushort const &v, size_t const n1, size_t const n2, size_t const tda) |
| C++ version of gsl_matrix_ushort_const_view_vector_with_tda(). More... | |
| static matrix_ushort const | view_array (unsigned short const *base, size_t const n1, size_t const n2) |
| Another C++ version of gsl_matrix_ushort_const_view_array(). More... | |
| static matrix_ushort const | view_array_with_tda (unsigned short const *base, size_t const n1, size_t const n2, size_t const tda) |
| Another C++ version of gsl_matrix_ushort_const_view_array_with_tda(). More... | |
| static matrix_ushort const | view_vector (vector_ushort const &v, size_t const n1, size_t const n2) |
| Another C++ version of gsl_matrix_ushort_const_view_vector(). More... | |
| static matrix_ushort const | view_vector_with_tda (vector_ushort const &v, size_t const n1, size_t const n2, size_t const tda) |
| Another C++ version of gsl_matrix_ushort_const_view_vector_with_tda(). More... | |
| static matrix_ushort | calloc (size_t const n1, size_t const n2) |
| C++ version of gsl_matrix_ushort_calloc(). More... | |
Private Attributes | |
| bool | owns_data |
| Used to allow a vector that does not own its data. More... | |
| gsl_matrix_ushort * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
This class handles matrix_ushort objects as shared handles.
It models a random access container so that STL functions work with matrix_ushort.
Note that matrix_ushort_views are implemented as matrix_ushort objects here.
Note that in C++11 it is possible to iterate over the rows of a matrix_ushort 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_ushort.
Definition at line 57 of file matrix_ushort.hpp.
| typedef const_iterator_t<false> gsl::matrix_ushort::const_iterator |
The const_iterator type.
Definition at line 607 of file matrix_ushort.hpp.
| typedef const_iterator_t<true> gsl::matrix_ushort::const_reverse_iterator |
The const_reverse_t type.
Definition at line 615 of file matrix_ushort.hpp.
| typedef iterator_t<false> gsl::matrix_ushort::iterator |
The iterator type.
Definition at line 611 of file matrix_ushort.hpp.
| typedef iterator_t<true> gsl::matrix_ushort::reverse_iterator |
The reverse_iterator type.
Definition at line 619 of file matrix_ushort.hpp.
| typedef size_t gsl::matrix_ushort::size_type |
A container must have a size_type.
Definition at line 623 of file matrix_ushort.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 62 of file matrix_ushort.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_ushort with n1 rows and n2 columns.
| n1 | The number of rows in the matrix_ushort |
| n2 | The number of columns in the matrix_ushort |
Definition at line 74 of file matrix_ushort.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
Could construct from a gsl_matrix_ushort.
This is not usually a good idea. In this case you should not use gsl_matrix_ushort_free() to deallocate the memory.
| v | The matrix_ushort |
Definition at line 92 of file matrix_ushort.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 103 of file matrix_ushort.hpp.
References ccgsl_pointer, count, gsl::exception::GSL_EBADLEN, row(), and set().
|
inline |
The copy constructor.
This shares the matrix_ushort. Use clone() if you want a full copy.
| v | The matrix_ushort to copy. |
Definition at line 136 of file matrix_ushort.hpp.
References count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 176 of file matrix_ushort.hpp.
References ccgsl_pointer, count, and owns_data.
|
inline |
Move constructor.
| v | The matrix_ushort to move. |
Definition at line 218 of file matrix_ushort.hpp.
References count.
|
inline |
C++ version of gsl_matrix_ushort_alloc_from_block().
| b | The block_ushort |
| offset | The offset within the block_ushort |
| n1 | The number of rows in the matrix_ushort |
| n2 | The number of columns in the matrix_ushort |
| d2 | undocumented |
Definition at line 1369 of file matrix_ushort.hpp.
References gsl::sf::mathieu::b(), ccgsl_pointer, and count.
|
inline |
C++ version of gsl_matrix_ushort_alloc_from_matrix().
| m | The matrix_ushort |
| 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_ushort |
| n2 | The number of columns in the matrix_ushort |
Definition at line 1387 of file matrix_ushort.hpp.
References ccgsl_pointer, count, and get().
|
inline |
C++ version of gsl_matrix_ushort_add().
| b | matrix_ushort to add to this |
Definition at line 1267 of file matrix_ushort.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_matrix_ushort_add_constant().
| x | constant to add to each element of this |
Definition at line 1285 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_add_diagonal().
| x | A constant |
Definition at line 1525 of file matrix_ushort.hpp.
References get().
|
inline |
Get iterator pointing to first vector_ushort element.
Definition at line 629 of file matrix_ushort.hpp.
|
inline |
Get iterator pointing to first vector_ushort element.
Definition at line 636 of file matrix_ushort.hpp.
|
inlinestatic |
C++ version of gsl_matrix_ushort_calloc().
This constructs a matrix_ushort object with entries initialised to zero.
| n1 | The number of rows in the matrix_ushort |
| n2 | The number of columns in the matrix_ushort |
Definition at line 1222 of file matrix_ushort.hpp.
References matrix_ushort().
|
inline |
The clone function.
Use this if you want a copy of the block_ushort that does not share the underlying data.
Definition at line 165 of file matrix_ushort.hpp.
|
inline |
C++ version of gsl_matrix_ushort_column().
| j | A column index |
Definition at line 784 of file matrix_ushort.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_ushort_const_column().
| j | A column index |
Definition at line 1007 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_const_column().
| j | A column index |
Definition at line 921 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_const_diagonal().
Definition at line 930 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_const_ptr().
| i | index of row |
| j | index of column |
Definition at line 1333 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_const_row().
| i | A row index |
Definition at line 911 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_const_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 974 of file matrix_ushort.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_ushort_const_subdiagonal().
| k | An index |
k as a vector_ushort Definition at line 940 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_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 901 of file matrix_ushort.hpp.
References get(), and matrix_ushort().
|
inline |
C++ version of gsl_matrix_ushort_const_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 962 of file matrix_ushort.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_ushort_const_superdiagonal().
| k | An index |
k as a vector_ushort Definition at line 950 of file matrix_ushort.hpp.
References get().
|
inlinestatic |
C++ version of gsl_matrix_ushort_const_view_array().
| base | An array of type unsigned short |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1072 of file matrix_ushort.hpp.
References matrix_ushort().
|
inlinestatic |
C++ version of gsl_matrix_ushort_const_view_array_with_tda().
| base | An array of type unsigned short |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1086 of file matrix_ushort.hpp.
References matrix_ushort().
|
inlinestatic |
C++ version of gsl_matrix_ushort_const_view_vector().
| v | A vector_ushort |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1098 of file matrix_ushort.hpp.
References gsl::vector_ushort::get(), and matrix_ushort().
|
inlinestatic |
C++ version of gsl_matrix_ushort_const_view_vector_with_tda().
| v | A vector_ushort |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1112 of file matrix_ushort.hpp.
References gsl::vector_ushort::get(), and matrix_ushort().
|
inline |
Give access to the data block_ushort.
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_ushort size2 and tda are not equal. However, new matrix_ushort objects are always initialised to have tda and size2 equal.
Definition at line 707 of file matrix_ushort.hpp.
References ccgsl_pointer.
|
inline |
Give access to the data block_ushort.
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_ushort size1 and tda are not equal. However, new matrix_ushort objects are always initialised to have tda and size2 equal.
Definition at line 721 of file matrix_ushort.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_matrix_ushort_diagonal().
Definition at line 794 of file matrix_ushort.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_ushort_const_diagonal().
Definition at line 1016 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_div_elements().
Divide each element of this by the corrsponding element of b
| b | Another matrix_ushort |
Definition at line 1498 of file matrix_ushort.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
Get iterator pointing beyond last vector_ushort element.
Definition at line 644 of file matrix_ushort.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing beyond last vector_ushort element.
Definition at line 652 of file matrix_ushort.hpp.
References ccgsl_pointer, and size1().
|
inline |
C++ version of gsl_matrix_ushort_fprintf().
| stream | A C file stream |
| format | d, e, f or g |
Definition at line 1359 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_fread().
| stream | A C file stream |
Definition at line 1340 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_fscanf().
| stream | A C file stream |
Definition at line 1352 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_fwrite().
| stream | A C file stream |
Definition at line 1346 of file matrix_ushort.hpp.
References get().
|
inline |
Get the gsl_matrix_ushort.
Definition at line 1188 of file matrix_ushort.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_ushort::d2sp(), diagonal(), div_elements(), fprintf(), fread(), fscanf(), fwrite(), get_col(), get_row(), isneg(), isnonneg(), isnull(), ispos(), matrix_ushort(), 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_ushort::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_ushort.
Definition at line 1193 of file matrix_ushort.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_matrix_ushort_get().
| i | index of row |
| j | index of column |
Definition at line 1312 of file matrix_ushort.hpp.
References get().
Referenced by get().
|
inline |
C++ version of gsl_matrix_ushort_get_col().
| v | A vector_ushort |
| j | The index of the column |
Definition at line 1541 of file matrix_ushort.hpp.
References get(), and gsl::vector_ushort::get().
|
inline |
C++ version of gsl_matrix_ushort_get_row().
| v | A vector_ushort |
| i | The index of the row |
Definition at line 1533 of file matrix_ushort.hpp.
References get(), and gsl::vector_ushort::get().
|
inline |
C++ version of gsl_matrix_ushort_isneg().
+1 or 0 according as elements are all negative or not Definition at line 1300 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_isnonneg().
+1 or 0 according as elements are all nonnegative or not Definition at line 1305 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_isnull().
+1 or 0 according as elements are all zero or not Definition at line 1290 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_ispos().
+1 or 0 according as elements are all positive or not Definition at line 1295 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_max().
Definition at line 1242 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_max_index().
| imax | row index of the first maximum element in the matrix_ushort |
| jmax | column index of the first maximum element in the matrix_ushort |
Definition at line 1466 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_memcpy().
| src | source matrix_ushort |
Definition at line 1237 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_min().
Definition at line 1247 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_min_index().
| imin | row index of the first minimum element in the matrix_ushort |
| jmin | column index of the first minimum element in the matrix_ushort |
Definition at line 1473 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_minmax().
| min_out | minimum element of matrix_ushort |
| max_out | maximum element of matrix_ushort |
Definition at line 1260 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_minmax().
| min_out | minimum element of matrix_ushort |
| max_out | maximum element of matrix_ushort |
Definition at line 1253 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_minmax_index().
| imin | row index of the first minimum element in the matrix_ushort |
| jmin | column index of the first minimum element in the matrix_ushort |
| imax | row index of the first maximum element in the matrix_ushort |
| jmax | column index of the first maximum element in the matrix_ushort |
Definition at line 1482 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_mul_elements().
Multiply matrices elementwise.
| b | Another matrix_ushort |
Definition at line 1490 of file matrix_ushort.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_matrix_ushort_norm1().
Definition at line 1504 of file matrix_ushort.hpp.
References get().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_matrix_ushort Definition at line 1213 of file matrix_ushort.hpp.
References ccgsl_pointer.
|
inline |
Move operator.
| v | The matrix_ushort to move. |
Definition at line 227 of file matrix_ushort.hpp.
References matrix_ushort().
|
inline |
The assignment operator.
This makes a shared copy.
| v | The matrix_ushort to copy |
Definition at line 145 of file matrix_ushort.hpp.
References ccgsl_pointer, count, and owns_data.
|
inline |
This function allows us to use a matrix_ushort like an array.
Use with caution. Although matrix_ushort[i][j] is possible, it is less efficient than matrix_ushort::set(). The effect is the same as row().
| i | The index of the row |
Definition at line 1567 of file matrix_ushort.hpp.
References ccgsl_pointer, gsl::exception::GSL_EFAULT, gsl::exception::GSL_EINVAL, size1(), and gsl::vector_ushort::wrap_gsl_vector_ushort_without_ownership().
|
inline |
This function allows us to use a matrix_ushort like an array.
Use with caution. Although matrix_ushort[i][j] is possible, it is much less efficient than matrix_ushort::set(). The effect is the same as row()
| i | The index of the row |
Definition at line 1601 of file matrix_ushort.hpp.
References ccgsl_pointer, gsl::exception::GSL_EFAULT, and gsl::vector_ushort::wrap_gsl_vector_ushort_without_ownership().
|
inline |
Permute the columns of this by permutation p.
| p | The permutation |
Definition at line 1618 of file matrix_ushort.hpp.
References get(), and gsl::permutation::get().
|
inline |
C++ version of gsl_matrix_ushort_ptr().
| i | index of row |
| j | index of column |
Definition at line 1326 of file matrix_ushort.hpp.
References get().
Referenced by gsl::matrix_ushort::iterator_base< container, content, reverse_t >::operator->().
|
inline |
Get iterator pointing to first vector_ushort element.
Definition at line 661 of file matrix_ushort.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing to first vector_ushort element.
Definition at line 669 of file matrix_ushort.hpp.
References ccgsl_pointer, and size1().
|
inline |
Get iterator pointing beyond last vector_ushort element.
Definition at line 678 of file matrix_ushort.hpp.
|
inline |
Get iterator pointing beyond last vector_ushort element.
Definition at line 685 of file matrix_ushort.hpp.
|
inline |
Stop sharing ownership of the shared pointer.
Definition at line 212 of file matrix_ushort.hpp.
References matrix_ushort().
|
inline |
C++ version of gsl_matrix_ushort_row().
| i | A row index |
Definition at line 774 of file matrix_ushort.hpp.
References get().
Referenced by matrix_ushort().
|
inline |
Another C++ version of gsl_matrix_ushort_const_row().
| i | A row index |
Definition at line 997 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_scale().
| x | constant to multiply this by |
Definition at line 1279 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_scale_columns().
| x | A scalar |
Definition at line 1518 of file matrix_ushort.hpp.
References get(), and gsl::vector_ushort::get().
|
inline |
C++ version of gsl_matrix_ushort_scale_rows().
| x | A scalar |
Definition at line 1511 of file matrix_ushort.hpp.
References get(), and gsl::vector_ushort::get().
|
inline |
C++ version of gsl_matrix_ushort_set().
| i | index of row |
| j | index of column |
| x | new value for element |
Definition at line 1319 of file matrix_ushort.hpp.
References get().
Referenced by matrix_ushort().
|
inline |
C++ version of gsl_matrix_ushort_set_all().
| x | The value to which all elements are set |
Definition at line 1231 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_set_col().
| j | The index of the column |
| v | A vector_ushort |
Definition at line 1557 of file matrix_ushort.hpp.
References get(), and gsl::vector_ushort::get().
|
inline |
C++ version of gsl_matrix_ushort_set_identity().
Definition at line 1401 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_set_row().
| i | The index of the row |
| v | A vector_ushort |
Definition at line 1549 of file matrix_ushort.hpp.
References get(), and gsl::vector_ushort::get().
|
inline |
C++ version of gsl_matrix_ushort_set_zero().
Definition at line 1226 of file matrix_ushort.hpp.
References get().
|
inline |
The number of rows of the matrix_ushort.
Definition at line 694 of file matrix_ushort.hpp.
References ccgsl_pointer.
Referenced by clone(), gsl::matrix_ushort::iterator_base< container, content, reverse_t >::decrement(), end(), gsl::matrix_ushort::iterator_base< container, content, reverse_t >::increment(), operator[](), and rbegin().
|
inline |
The number of columns of the matrix_ushort.
Definition at line 699 of file matrix_ushort.hpp.
References ccgsl_pointer.
Referenced by clone().
|
inline |
C++ version of gsl_matrix_ushort_sub().
| b | matrix_ushort to subtract from this |
Definition at line 1273 of file matrix_ushort.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_matrix_ushort_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 837 of file matrix_ushort.hpp.
References get(), and gsl::rstat::n().
|
inline |
Another C++ version of gsl_matrix_ushort_const_subcolumn().
| j | A column index |
| offset | A row offset |
| n | The number of elements |
Definition at line 1060 of file matrix_ushort.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_ushort_subdiagonal().
| k | An index |
k as a vector_ushort Definition at line 803 of file matrix_ushort.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_ushort_const_subdiagonal().
| k | An index |
k as a vector_ushort Definition at line 1026 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_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 764 of file matrix_ushort.hpp.
References get(), and matrix_ushort().
|
inline |
Another C++ version of gsl_matrix_ushort_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 987 of file matrix_ushort.hpp.
References get(), and matrix_ushort().
|
inline |
C++ version of gsl_matrix_ushort_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 825 of file matrix_ushort.hpp.
References get(), and gsl::rstat::n().
|
inline |
Another C++ version of gsl_matrix_ushort_const_subrow().
| i | A row index |
| offset | A column offset |
| n | The number of elements |
Definition at line 1048 of file matrix_ushort.hpp.
References get(), and gsl::rstat::n().
|
inline |
C++ version of gsl_matrix_ushort_superdiagonal().
| k | An index |
k as a vector_ushort Definition at line 813 of file matrix_ushort.hpp.
References get().
|
inline |
Another C++ version of gsl_matrix_ushort_const_superdiagonal().
| k | An index |
k as a vector_ushort Definition at line 1036 of file matrix_ushort.hpp.
References get().
|
inline |
Swap two matrix_ushort objects.
This works even if the matrix_ushort objects have different sizes because it swaps pointers.
| m | The matrix_ushort to swap with this. |
Definition at line 733 of file matrix_ushort.hpp.
References ccgsl_pointer, and count.
|
inline |
C++ version of gsl_matrix_ushort_swap_columns().
| i | Index of first column |
| j | Index of second column |
Definition at line 1415 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_swap_rowcol().
Swap row and column in place. Matrix must be square.
| i | index of row |
| j | index of column |
Definition at line 1423 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_swap_rows().
| i | Index of first row |
| j | Index of second row |
Definition at line 1408 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_transpose().
Definition at line 1428 of file matrix_ushort.hpp.
References get().
|
inline |
C++ version of gsl_matrix_ushort_transpose_memcpy().
| src | matrix_ushort whose transpose it to be copied to this |
Definition at line 1434 of file matrix_ushort.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 752 of file matrix_ushort.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 743 of file matrix_ushort.hpp.
References get().
|
inline |
Find if this is the only object sharing the gsl_matrix_ushort.
true or falses according as this is the only matrix_ushort object sharing the gsl_matrix_ushort Definition at line 1199 of file matrix_ushort.hpp.
References count.
|
inline |
Find how many matrix_ushort objects share this pointer.
Definition at line 1204 of file matrix_ushort.hpp.
References count.
|
inlinestatic |
C++ version of gsl_matrix_ushort_view_array().
| base | An array of type unsigned short |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 849 of file matrix_ushort.hpp.
References matrix_ushort().
|
inlinestatic |
Another C++ version of gsl_matrix_ushort_const_view_array().
| base | An array of type unsigned short |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1124 of file matrix_ushort.hpp.
References matrix_ushort().
|
inlinestatic |
C++ version of gsl_matrix_ushort_view_array_with_tda().
| base | An array of type unsigned short |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 862 of file matrix_ushort.hpp.
References matrix_ushort().
|
inlinestatic |
Another C++ version of gsl_matrix_ushort_const_view_array_with_tda().
| base | An array of type unsigned short |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1138 of file matrix_ushort.hpp.
References matrix_ushort().
|
inlinestatic |
C++ version of gsl_matrix_ushort_view_vector().
| v | A vector_ushort |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 874 of file matrix_ushort.hpp.
References gsl::vector_ushort::get(), and matrix_ushort().
|
inlinestatic |
Another C++ version of gsl_matrix_ushort_const_view_vector().
| v | A vector_ushort |
| n1 | The number of rows |
| n2 | The number of columns |
Definition at line 1150 of file matrix_ushort.hpp.
References gsl::vector_ushort::get(), and matrix_ushort().
|
inlinestatic |
C++ version of gsl_matrix_ushort_view_vector_with_tda().
| v | A vector_ushort |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 887 of file matrix_ushort.hpp.
References gsl::vector_ushort::get(), and matrix_ushort().
|
inlinestatic |
Another C++ version of gsl_matrix_ushort_const_view_vector_with_tda().
| v | A vector_ushort |
| n1 | The number of rows |
| n2 | The number of columns |
| tda | The number of columns in memory |
Definition at line 1164 of file matrix_ushort.hpp.
References gsl::vector_ushort::get(), and matrix_ushort().
|
inline |
This function is intended mainly for internal use.
It allows this to point to a gsl_matrix_ushort 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_ushort* argument to one that takes a gsl_matrix_ushort* argument.
| v | The gsl_matrix_ushort |
Definition at line 196 of file matrix_ushort.hpp.
References ccgsl_pointer, count, and owns_data.
|
private |
The shared pointer.
Definition at line 1177 of file matrix_ushort.hpp.
Referenced by data(), end(), get(), matrix_ushort(), operator bool(), operator=(), operator[](), rbegin(), size1(), size2(), swap(), wrap_gsl_matrix_ushort_without_ownership(), and ~matrix_ushort().
|
private |
The shared reference count.
Definition at line 1181 of file matrix_ushort.hpp.
Referenced by matrix_ushort(), operator=(), swap(), unique(), use_count(), wrap_gsl_matrix_ushort_without_ownership(), and ~matrix_ushort().
|
private |
Used to allow a vector that does not own its data.
Definition at line 1173 of file matrix_ushort.hpp.
Referenced by matrix_ushort(), operator=(), wrap_gsl_matrix_ushort_without_ownership(), and ~matrix_ushort().