#include <Matrix_SymSparse.hxx>
Inheritance diagram for Seldon::Matrix_SymSparse< T, Prop, Storage, Allocator >:

Public Types | |
| typedef Allocator::value_type | value_type |
| typedef Allocator::pointer | pointer |
| typedef Allocator::const_pointer | const_pointer |
| typedef Allocator::reference | reference |
| typedef Allocator::const_reference | const_reference |
Public Member Functions | |
| Matrix_SymSparse () | |
| Default constructor. | |
| Matrix_SymSparse (int i, int j) | |
| Constructor. | |
| Matrix_SymSparse (int i, int j, int nz) | |
| Constructor. | |
| template<class Storage0, class Allocator0, class Storage1, class Allocator1, class Storage2, class Allocator2> | |
| Matrix_SymSparse (int i, int j, Vector< T, Storage0, Allocator0 > &values, Vector< int, Storage1, Allocator1 > &ptr, Vector< int, Storage2, Allocator2 > &ind) | |
| Constructor. | |
| ~Matrix_SymSparse () | |
| Destructor. | |
| void | Clear () |
| Clears the matrix. | |
| template<class Storage0, class Allocator0, class Storage1, class Allocator1, class Storage2, class Allocator2> | |
| void | SetData (int i, int j, Vector< T, Storage0, Allocator0 > &values, Vector< int, Storage1, Allocator1 > &ptr, Vector< int, Storage2, Allocator2 > &ind) |
| Redefines the matrix. | |
| void | SetData (int i, int j, int nz, pointer values, int *ptr, int *ind) |
| Redefines the matrix. | |
| int | GetNonZeros () const |
| int | GetDataSize () const |
| Returns the number of elements stored in memory. | |
| int * | GetPtr () const |
| Returns (row or column) start indices. | |
| int * | GetInd () const |
| Returns (row or column) indices of non-zero entries. | |
| int | GetPtrSize () const |
| Returns the length of the array of start indices. | |
| int | GetIndSize () const |
| Returns the length of the array of (column or row) indices. | |
| value_type | operator() (int i, int j) const |
| Access operator. | |
| void | Print () const |
| Displays the matrix on the standard output. | |
| void | SetDiags () |
Protected Attributes | |
| int | nz_ |
| int * | ptr_ |
| int * | ind_ |
Symmetric sparse matrices are defined by: (1) the number of rows and columns; (2) the number of non-zero entries; (3) an array 'ptr_' of start indices (i.e. indices of the first element of each row or column, depending on the storage); (4) an array 'ind_' of column or row indices of each non-zero entry; (5) values of non-zero entries.
|
|||||||||
|
Default constructor. Builds a empty matrix. |
|
||||||||||||||||
|
Constructor. Builds an empty i by j sparse matrix.
|
|
||||||||||||||||||||
|
Constructor. Builds a sparse matrix of size i x j , with nz non-zero (stored) elements.
|
|
||||||||||||||||||||||||||||||||
|
Constructor. Builds a i by j sparse matrix with non-zero values and indices provided by 'values' (values), 'ptr' (pointers) and 'ind' (indices). Input vectors are released and are empty on exit.
|
|
|||||||||
|
Clears the matrix. This methods is equivalent to the destructor. On exit, the matrix is empty (0x0). |
|
|||||||||
|
Returns the number of elements stored in memory.
|
|
|||||||||
|
Returns (row or column) indices of non-zero entries. Returns the array ('ind_') of (row or column) indices of non-zero entries. This array defines non-zero entries indices if coupled with (column or row) start indices.
|
|
|||||||||
|
Returns the length of the array of (column or row) indices. Returns the length of the array ('ind_') of (row or column) indices of non-zero entries (that are stored). This array defines non-zero entries indices (that are stored) if coupled with (column or row) start indices.
|
|
|||||||||
|
Returns (row or column) start indices. Returns the array ('ptr_') of start indices.
|
|
|||||||||
|
Returns the length of the array of start indices.
|
|
||||||||||||||||
|
Access operator. Returns the value of element (i, j).
|
|
|||||||||
|
Displays the matrix on the standard output. Displays elements on the standard output, in text format. Each row is displayed on a single line and elements of a row are delimited by tabulations. |
|
||||||||||||||||||||||||||||||||
|
Redefines the matrix. It clears the matrix and sets it to a new matrix defined by arrays 'values' (values), 'ptr' (pointers) and 'ind' (indices).
|
|
||||||||||||||||||||||||||||||||
|
Redefines the matrix. It clears the matrix and sets it to a new matrix defined by 'values' (values), 'ptr' (pointers) and 'ind' (indices). Input vectors are released and are empty on exit.
|
1.4.0