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

Public Types | |
| enum | { COO = GSL_SPMATRIX_COO , CSC = GSL_SPMATRIX_CSC , CSR = GSL_SPMATRIX_CSR , TRIPLET = GSL_SPMATRIX_TRIPLET , CCS = GSL_SPMATRIX_CCS , CRS = GSL_SPMATRIX_CRS } |
| Reference to GSL_SPMATRIX constants. More... | |
Public Member Functions | |
| spmatrix_long () | |
| The default constructor is only really useful for assigning to. More... | |
| spmatrix_long (size_t const n1, size_t const n2) | |
| This constructor creates a new matrix_long with n1 rows and n2 columns. More... | |
| spmatrix_long (size_t const n1, size_t const n2, size_t nzmax, size_t sptype) | |
| This constructor creates a new matrix_long with n1 rows and n2 columns. More... | |
| spmatrix_long (gsl_spmatrix_long *v) | |
| Could construct from a gsl_spmatrix_long. More... | |
| spmatrix_long (std::initializer_list< std::initializer_list< long > > initializer_list) | |
| Could construct from a std::initializer_list in C++11 and later. More... | |
| spmatrix_long (spmatrix_long const &v) | |
| The copy constructor. More... | |
| spmatrix_long & | operator= (spmatrix_long const &v) |
| The assignment operator. More... | |
| spmatrix_long | clone () const |
| The clone function. More... | |
| ~spmatrix_long () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| void | wrap_gsl_spmatrix_long_without_ownership (gsl_spmatrix_long *v) |
| This function is intended mainly for internal use. More... | |
| void | reset () |
| Stop sharing ownership of the shared pointer. More... | |
| spmatrix_long (spmatrix_long &&v) | |
| Move constructor. More... | |
| spmatrix_long & | operator= (spmatrix_long &&v) |
| Move operator. More... | |
| size_t | size1 () const |
| The number of rows of the matrix_long. More... | |
| size_t | size2 () const |
| The number of columns of the matrix_long. More... | |
| size_t | nzmax () const |
| The maximum number of nonzero elements. More... | |
| int | sptype () const |
| The type of the spmatrix_long. More... | |
| long * | data () |
| Give access to the data block. More... | |
| long const * | data () const |
| Give access to the data block. More... | |
| void | swap (spmatrix_long &m) |
| Swap two spmatrix_long objects. More... | |
| int | realloc (size_t const nzmax) |
| C++ version of gsl_spmatrix_long_realloc(). More... | |
| size_t | nnz () const |
| C++ version of gsl_spmatrix_long_nnz(). More... | |
| char const * | type () const |
| C++ version of gsl_spmatrix_long_type(). More... | |
| int | set_zero () |
| C++ version of gsl_spmatrix_long_set_zero(). More... | |
| int | tree_rebuild () |
| C++ version of gsl_spmatrix_long_tree_rebuild(). More... | |
| spmatrix_long | csc () const |
| C++ version of gsl_spmatrix_long_csc(). More... | |
| spmatrix_long | csr () const |
| C++ version of gsl_spmatrix_long_csr(). More... | |
| spmatrix_long | compress (int const sptype) const |
| C++ version of gsl_spmatrix_long_compress(). More... | |
| spmatrix_long | compcol () const |
| C++ version of gsl_spmatrix_long_compcol(). More... | |
| spmatrix_long | ccs () const |
| C++ version of gsl_spmatrix_long_ccs(). More... | |
| spmatrix_long | crs () const |
| C++ version of gsl_spmatrix_long_crs(). More... | |
| int | memcpy (spmatrix_long &dest) const |
| C++ version of gsl_spmatrix_long_memcpy(). More... | |
| int | fprintf (FILE *stream, char const *format) const |
| C++ version of gsl_spmatrix_long_fprintf(). More... | |
| int | fwrite (FILE *stream) const |
| C++ version of gsl_spmatrix_long_fwrite(). More... | |
| int | fread (FILE *stream) |
| C++ version of gsl_spmatrix_long_fread(). More... | |
| long | get (size_t const i, size_t const j) const |
| C++ version of gsl_spmatrix_long_get(). More... | |
| int | set (size_t const i, size_t const j, long const x) |
| C++ version of gsl_spmatrix_long_set(). More... | |
| long * | ptr (size_t const i, size_t const j) const |
| C++ version of gsl_spmatrix_long_ptr(). More... | |
| int | minmax (long &min_out, long &max_out) const |
| C++ version of gsl_spmatrix_long_minmax(). More... | |
| int | min_index (size_t &imin_out, size_t &jmin_out) const |
| C++ version of gsl_spmatrix_long_min_index(). More... | |
| int | scale (long const x) |
| C++ version of gsl_spmatrix_long_scale(). More... | |
| int | scale_columns (gsl::vector_long const &x) |
| C++ version of gsl_spmatrix_long_scale_columns(). More... | |
| int | scale_rows (gsl::vector_long const &x) |
| C++ version of gsl_spmatrix_long_scale_rows(). More... | |
| int | equal (spmatrix_long const &b) const |
| C++ version of gsl_spmatrix_long_equal(). More... | |
| int | transpose () |
| C++ version of gsl_spmatrix_long_transpose(). More... | |
| int | transpose2 () |
| C++ version of gsl_spmatrix_long_transpose2(). More... | |
| gsl_spmatrix_long * | get () |
| Get the gsl_spmatrix_long. More... | |
| gsl_spmatrix_long const * | get () const |
| Get the gsl_spmatrix_long. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_spmatrix_long. More... | |
| size_t | use_count () const |
| Find how many spmatrix_long objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
Static Public Member Functions | |
| static int | realloc (size_t const nzmax, gsl::spmatrix_long &spMatrix) |
| C++ version of gsl_spmatrix_long_realloc(): matches a function in gsl that is intended for internal use. More... | |
| static size_t | nnz (spmatrix_long const &spMatrix) |
| C++ version of gsl_spmatrix_long_nnz(). More... | |
| static char const * | type (spmatrix_long const &spMatrix) |
| C++ version of gsl_spmatrix_long_type(). More... | |
| static int | set_zero (spmatrix_long &spMatrix) |
| C++ version of gsl_spmatrix_long_set_zero(). More... | |
| static int | tree_rebuild (spmatrix_long &spMatrix) |
| C++ version of gsl_spmatrix_long_tree_rebuild(). More... | |
| static spmatrix_long | csc (spmatrix_long const &spMatrix) |
| C++ version of gsl_spmatrix_long_csc(). More... | |
| static spmatrix_long | csr (spmatrix_long const &spMatrix) |
| C++ version of gsl_spmatrix_long_csr(). More... | |
| static spmatrix_long | compress (spmatrix_long const &spMatrix, int const sptype) |
| C++ version of gsl_spmatrix_long_compress(). More... | |
| static spmatrix_long | compcol (spmatrix_long const &spMatrix) |
| C++ version of gsl_spmatrix_long_compcol(). More... | |
| static spmatrix_long | ccs (spmatrix_long const &spMatrix) |
| C++ version of gsl_spmatrix_long_ccs(). More... | |
| static spmatrix_long | crs (spmatrix_long const &spMatrix) |
| C++ version of gsl_spmatrix_long_crs(). More... | |
| static int | memcpy (spmatrix_long &dest, spmatrix_long const &src) |
| C++ version of gsl_spmatrix_long_memcpy(). More... | |
| static int | fprintf (FILE *stream, spmatrix_long const &spMatrix, char const *format) |
| C++ version of gsl_spmatrix_long_fprintf(). More... | |
| static spmatrix_long | fscanf (FILE *stream) |
| C++ version of gsl_spmatrix_long_fscanf(). More... | |
| static int | fwrite (FILE *stream, spmatrix_long &spMatrix) |
| C++ version of gsl_spmatrix_long_fwrite(). More... | |
| static int | fread (FILE *stream, spmatrix_long &spMatrix) |
| C++ version of gsl_spmatrix_long_fread(). More... | |
| static int | add (spmatrix_long &c, spmatrix_long const &a, spmatrix_long const &b) |
| C++ version of gsl_spmatrix_long_add(). More... | |
| static spmatrix_long | add (spmatrix_long const &a, spmatrix_long const &b) |
| C++ version of gsl_spmatrix_long_add(). More... | |
| static int | add_to_dense (gsl::matrix_long &a, spmatrix_long const &b) |
| C++ version of gsl_spmatrix_add_to_dense(). More... | |
| static int | dense_add (gsl::matrix_long &a, spmatrix_long const &b) |
| C++ version of gsl_spmatrix_dense_add(). More... | |
| static int | dense_sub (gsl::matrix_long &a, spmatrix_long const &b) |
| C++ version of gsl_spmatrix_dense_sub(). More... | |
| static long | norm1 (gsl::spmatrix_long const &a) |
| C++ version of gsl_spmatrix_long_norm1(). More... | |
| static int | d2sp (gsl::spmatrix_long &S, gsl::matrix_long const &A) |
| C++ version of gsl_spmatrix_long_d2sp(). More... | |
| static int | sp2d (gsl::matrix_long &A, spmatrix_long const &S) |
| C++ version of gsl_spmatrix_long_sp2d(). More... | |
| static int | equal (spmatrix_long const &a, spmatrix_long const &b) |
| C++ version of gsl_spmatrix_long_equal(). More... | |
| static int | transpose (spmatrix_long &a) |
| C++ version of gsl_spmatrix_long_transpose(). More... | |
| static int | transpose2 (spmatrix_long &a) |
| C++ version of gsl_spmatrix_long_transpose2(). More... | |
| static int | transpose_memcpy (spmatrix_long &dest, spmatrix_long const &src) |
| C++ version of gsl_spmatrix_long_transpose_memcpy(). More... | |
Private Attributes | |
| gsl_spmatrix_long * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
This class handles sparse matrix_long objects as shared handles.
It models a random access container so that STL functions work with matrix_long.
Definition at line 37 of file spmatrix_long.hpp.
| anonymous enum |
Reference to GSL_SPMATRIX constants.
| Enumerator | |
|---|---|
| COO | GSL_SPMATRIX_COO. |
| CSC | GSL_SPMATRIX_CSC. |
| CSR | GSL_SPMATRIX_CSR. |
| TRIPLET | GSL_SPMATRIX_TRIPLET. |
| CCS | GSL_SPMATRIX_CCS. |
| CRS | GSL_SPMATRIX_CRS. |
Definition at line 42 of file spmatrix_long.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 59 of file spmatrix_long.hpp.
References ccgsl_pointer, and count.
Referenced by operator=(), and reset().
|
inlineexplicit |
This constructor creates a new matrix_long with n1 rows and n2 columns.
| n1 | The number of rows in the matrix_long |
| n2 | The number of columns in the matrix_long |
Definition at line 70 of file spmatrix_long.hpp.
References ccgsl_pointer, and count.
|
inlineexplicit |
This constructor creates a new matrix_long with n1 rows and n2 columns.
| n1 | The number of rows in the matrix_long |
| n2 | The number of columns in the matrix_long |
| nzmax | The maximum number of nonzero elements that will be added to the matrix_long |
| sptype | The storage format of the sparse matrix_long: one of gsl::spmatrix_long::COO, gsl::spmatrix_long::CSC or gsl::spmatrix_long::CSR |
Definition at line 91 of file spmatrix_long.hpp.
References ccgsl_pointer, count, nzmax(), and sptype().
|
inlineexplicit |
Could construct from a gsl_spmatrix_long.
This is not usually a good idea. In this case you should not use gsl_spmatrix_long_free() to deallocate the memory.
| v | The matrix_long |
Definition at line 110 of file spmatrix_long.hpp.
References ccgsl_pointer, and count.
|
inline |
Could construct from a std::initializer_list in C++11 and later.
| initializer_list | The initializer_list. |
Definition at line 121 of file spmatrix_long.hpp.
References ccgsl_pointer, count, gsl::exception::GSL_EBADLEN, and set().
|
inline |
The copy constructor.
This shares the matrix_long. Use clone() if you want a full copy.
| v | The spmatrix_long to copy. |
Definition at line 154 of file spmatrix_long.hpp.
References count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 193 of file spmatrix_long.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The spmatrix_long to move. |
Definition at line 233 of file spmatrix_long.hpp.
References count.
|
inlinestatic |
C++ version of gsl_spmatrix_long_add().
| c | An spmatrix_long object |
| a | An spmatrix_long object |
| b | An spmatrix_long object |
Definition at line 612 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a(), gsl::sf::mathieu::b(), and get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_add().
| a | An spmatrix_long object |
| b | An spmatrix_long object |
Definition at line 620 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a(), and gsl::sf::mathieu::b().
|
inlinestatic |
C++ version of gsl_spmatrix_add_to_dense().
| a | A gsl::matrix_long (return value is sum) |
| b | A gsl::spmatrix_long |
Definition at line 632 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a(), and gsl::sf::mathieu::b().
|
inline |
C++ version of gsl_spmatrix_long_ccs().
Definition at line 357 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_ccs().
| spMatrix | An spmatrix_long object |
Definition at line 554 of file spmatrix_long.hpp.
References get().
|
inline |
The clone function.
Use this if you want a copy of the spmatrix_long that does not share the underlying data.
Definition at line 182 of file spmatrix_long.hpp.
|
inline |
C++ version of gsl_spmatrix_long_compcol().
Definition at line 350 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_compcol().
| spMatrix | An spmatrix_long object |
Definition at line 546 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_compress().
| sptype | One of gsl::spmatrix_long::COO, gsl::spmatrix_long::CSC or gsl::spmatrix_long::CSR |
Definition at line 343 of file spmatrix_long.hpp.
|
inlinestatic |
C++ version of gsl_spmatrix_long_compress().
| spMatrix | An spmatrix_long object |
| sptype | One of gsl::spmatrix_long::COO, gsl::spmatrix_long::CSC or gsl::spmatrix_long::CSR |
Definition at line 538 of file spmatrix_long.hpp.
|
inline |
C++ version of gsl_spmatrix_long_crs().
Definition at line 364 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_crs().
| spMatrix | An spmatrix_long object |
Definition at line 562 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_csc().
this which must be in COO format Definition at line 323 of file spmatrix_long.hpp.
|
inlinestatic |
C++ version of gsl_spmatrix_long_csc().
Sets dest to a sparse matrix_long in compressed sparse column format from the input sparse matrix_long src, which must be in COO format
| spMatrix | An spmatrix_long object |
Definition at line 518 of file spmatrix_long.hpp.
|
inline |
C++ version of gsl_spmatrix_long_csr().
this which must be in COO format Definition at line 333 of file spmatrix_long.hpp.
|
inlinestatic |
C++ version of gsl_spmatrix_long_csr().
Sets dest to a sparse matrix_long in compressed sparse row format from the input sparse matrix_long src, which must be in COO format
| spMatrix | An spmatrix_long object |
Definition at line 528 of file spmatrix_long.hpp.
|
inlinestatic |
C++ version of gsl_spmatrix_long_d2sp().
| S | A gsl::spmatrix_long (return value) |
| A | A gsl::matrix_long |
Definition at line 664 of file spmatrix_long.hpp.
References gsl::matrix_long::get(), and get().
|
inline |
Give access to the data block.
Definition at line 273 of file spmatrix_long.hpp.
References ccgsl_pointer.
|
inline |
Give access to the data block.
Definition at line 280 of file spmatrix_long.hpp.
References ccgsl_pointer.
|
inlinestatic |
C++ version of gsl_spmatrix_dense_add().
| a | A gsl::matrix_long (return value is sum) |
| b | A gsl::spmatrix_long |
Definition at line 641 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a(), and gsl::sf::mathieu::b().
|
inlinestatic |
C++ version of gsl_spmatrix_dense_sub().
| a | A gsl::matrix_long (return value is difference) |
| b | A gsl::spmatrix_long |
Definition at line 649 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a(), and gsl::sf::mathieu::b().
|
inlinestatic |
C++ version of gsl_spmatrix_long_equal().
| a | An spmatrix_long |
| b | An spmatrix_long |
Definition at line 680 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a(), and gsl::sf::mathieu::b().
|
inline |
C++ version of gsl_spmatrix_long_equal().
| b | An spmatrix_long |
a and b are equal or not Definition at line 463 of file spmatrix_long.hpp.
References gsl::sf::mathieu::b(), and get().
|
inline |
C++ version of gsl_spmatrix_long_fprintf().
| stream | A file stream |
| format | One of the g, e or f formats for floating point numbers |
Definition at line 379 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_fprintf().
| stream | A file stream |
| spMatrix | An spmatrix_long object |
| format | One of the g, e or f formats for floating point numbers |
Definition at line 580 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_fread().
| stream | A file stream |
Definition at line 393 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_fread().
| stream | A file stream |
| spMatrix | An spmatrix_long object |
Definition at line 603 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_fscanf().
| stream | A file stream |
Definition at line 587 of file spmatrix_long.hpp.
|
inline |
C++ version of gsl_spmatrix_long_fwrite().
| stream | A file stream |
Definition at line 386 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_fwrite().
| stream | A file stream |
| spMatrix | An spmatrix_long object |
Definition at line 595 of file spmatrix_long.hpp.
References get().
|
inline |
Get the gsl_spmatrix_long.
Definition at line 717 of file spmatrix_long.hpp.
References ccgsl_pointer.
Referenced by ccs(), clone(), compcol(), compress(), crs(), csc(), csr(), equal(), fprintf(), fread(), fwrite(), get(), memcpy(), min_index(), minmax(), nnz(), ptr(), realloc(), scale(), scale_columns(), scale_rows(), set(), set_zero(), transpose(), transpose2(), tree_rebuild(), and type().
|
inline |
Get the gsl_spmatrix_long.
Definition at line 722 of file spmatrix_long.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_spmatrix_long_get().
| i | Row index |
| j | Column index |
Definition at line 401 of file spmatrix_long.hpp.
References get().
Referenced by add(), ccs(), clone(), compcol(), compress(), crs(), csc(), csr(), d2sp(), fprintf(), fread(), fwrite(), memcpy(), nnz(), realloc(), set_zero(), sp2d(), transpose_memcpy(), tree_rebuild(), and type().
|
inline |
C++ version of gsl_spmatrix_long_memcpy().
| dest | The destination spmatrix_long |
Definition at line 372 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_memcpy().
| dest | The destination spmatrix_long |
| src | The source spmatrix_long |
Definition at line 571 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_min_index().
| imin_out | The row index of the minimum nonzero element (by reference) |
| jmin_out | The column index of the minimum nonzero element (by reference) |
Definition at line 435 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_minmax().
| min_out | The minimum element (by reference) |
| max_out | The maximum element (by reference) |
Definition at line 427 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_nnz().
this Definition at line 302 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_nnz().
| spMatrix | An spmatrix_long object |
Definition at line 489 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_norm1().
| a | A gsl::spmatrix_long |
Definition at line 656 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a().
|
inline |
The maximum number of nonzero elements.
Definition at line 263 of file spmatrix_long.hpp.
References ccgsl_pointer.
Referenced by realloc(), and spmatrix_long().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_spmatrix_long Definition at line 742 of file spmatrix_long.hpp.
References ccgsl_pointer.
|
inline |
Move operator.
| v | The spmatrix_long to move. |
Definition at line 242 of file spmatrix_long.hpp.
References spmatrix_long().
|
inline |
The assignment operator.
This makes a shared copy.
| v | The matrix_long to copy |
Definition at line 162 of file spmatrix_long.hpp.
References ccgsl_pointer, and count.
|
inline |
C++ version of gsl_spmatrix_long_ptr().
| i | Row index |
| j | Column index |
Definition at line 418 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_realloc().
This is not usually used.
| nzmax | The maximum number of nonzero elements |
Definition at line 297 of file spmatrix_long.hpp.
|
inlinestatic |
C++ version of gsl_spmatrix_long_realloc(): matches a function in gsl that is intended for internal use.
| nzmax | The maximum number of nonzero elements |
| spMatrix | An spmatrix_long object |
Definition at line 482 of file spmatrix_long.hpp.
|
inline |
Stop sharing ownership of the shared pointer.
Definition at line 227 of file spmatrix_long.hpp.
References spmatrix_long().
|
inline |
C++ version of gsl_spmatrix_long_scale().
| x | A scaling factor |
Definition at line 443 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_scale_columns().
| x | A scaling gsl::vector_long |
Definition at line 449 of file spmatrix_long.hpp.
References get(), and gsl::vector_long::get().
|
inline |
C++ version of gsl_spmatrix_long_scale_rows().
| x | A scaling gsl::vector_long |
Definition at line 456 of file spmatrix_long.hpp.
References get(), and gsl::vector_long::get().
|
inline |
C++ version of gsl_spmatrix_long_set().
| i | Row index |
| j | Column value |
| x | New matrix_long entry |
Definition at line 410 of file spmatrix_long.hpp.
References get().
Referenced by spmatrix_long().
|
inline |
C++ version of gsl_spmatrix_long_set_zero().
Reinitialise spmatrix_long to zeros.
Definition at line 312 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_set_zero().
Reinitialise spmatrix_long to zeros.
| spMatrix | An spmatrix_long object |
Definition at line 503 of file spmatrix_long.hpp.
References get().
|
inline |
The number of rows of the matrix_long.
Definition at line 253 of file spmatrix_long.hpp.
References ccgsl_pointer.
|
inline |
The number of columns of the matrix_long.
Definition at line 258 of file spmatrix_long.hpp.
References ccgsl_pointer.
|
inlinestatic |
C++ version of gsl_spmatrix_long_sp2d().
| A | A gsl::matrix_long (return value) |
| S | A gsl::spmatrix_long |
Definition at line 672 of file spmatrix_long.hpp.
References gsl::matrix_long::get(), and get().
|
inline |
The type of the spmatrix_long.
Definition at line 268 of file spmatrix_long.hpp.
References ccgsl_pointer.
Referenced by compress(), and spmatrix_long().
|
inline |
Swap two spmatrix_long objects.
This works even if the spmatrix_long objects have different sizes because it swaps pointers.
| m | The spmatrix_long to swap with this. |
Definition at line 288 of file spmatrix_long.hpp.
References ccgsl_pointer, and count.
|
inline |
C++ version of gsl_spmatrix_long_transpose().
Definition at line 468 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_transpose().
| a | An spmatrix_long |
Definition at line 687 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a().
|
inline |
C++ version of gsl_spmatrix_long_transpose2().
Definition at line 473 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_transpose2().
| a | An spmatrix_long |
Definition at line 693 of file spmatrix_long.hpp.
References gsl::sf::mathieu::a().
|
inlinestatic |
C++ version of gsl_spmatrix_long_transpose_memcpy().
| dest | An spmatrix_long (return) |
| src | An spmatrix_long |
Definition at line 700 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_tree_rebuild().
Definition at line 317 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_tree_rebuild().
| spMatrix | An spmatrix_long object |
Definition at line 510 of file spmatrix_long.hpp.
References get().
|
inline |
C++ version of gsl_spmatrix_long_type().
Definition at line 307 of file spmatrix_long.hpp.
References get().
|
inlinestatic |
C++ version of gsl_spmatrix_long_type().
| spMatrix | An spmatrix_long object |
Definition at line 496 of file spmatrix_long.hpp.
References get().
|
inline |
Find if this is the only object sharing the gsl_spmatrix_long.
true or falses according as this is the only spmatrix_long object sharing the gsl_spmatrix_long Definition at line 728 of file spmatrix_long.hpp.
References count.
|
inline |
Find how many spmatrix_long objects share this pointer.
Definition at line 733 of file spmatrix_long.hpp.
References count.
|
inline |
This function is intended mainly for internal use.
It allows this to point to a gsl_spmatrix_long 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::spmatrix_long* argument to one that takes a gsl_spmatrix_long* argument.
| v | The gsl_spmatrix_long |
Definition at line 212 of file spmatrix_long.hpp.
References ccgsl_pointer, and count.
|
private |
The shared pointer.
Definition at line 706 of file spmatrix_long.hpp.
Referenced by data(), get(), nzmax(), operator bool(), operator=(), size1(), size2(), spmatrix_long(), sptype(), swap(), wrap_gsl_spmatrix_long_without_ownership(), and ~spmatrix_long().
|
private |
The shared reference count.
Definition at line 710 of file spmatrix_long.hpp.
Referenced by operator=(), spmatrix_long(), swap(), unique(), use_count(), wrap_gsl_spmatrix_long_without_ownership(), and ~spmatrix_long().