dune-istl
2.4.1-rc2
|
Stores the nonzero entries in a sparse matrix. More...
#include <dune/istl/matrixindexset.hh>
Public Types | |
typedef std::size_t | size_type |
Public Member Functions | |
MatrixIndexSet () | |
Default constructor. More... | |
MatrixIndexSet (size_type rows, size_type cols) | |
Constructor setting the matrix size. More... | |
void | resize (size_type rows, size_type cols) |
Reset the size of an index set. More... | |
void | add (size_type i, size_type j) |
Add an index to the index set. More... | |
size_type | size () const |
Return the number of entries. More... | |
size_type | rows () const |
Return the number of rows. More... | |
size_type | rowsize (size_type row) const |
Return the number of entries in a given row. More... | |
template<class MatrixType > | |
void | import (const MatrixType &m, size_type rowOffset=0, size_type colOffset=0) |
Import all nonzero entries of a sparse matrix into the index set. More... | |
template<class MatrixType > | |
void | exportIdx (MatrixType &matrix) const |
Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet. More... | |
Stores the nonzero entries in a sparse matrix.
typedef std::size_t Dune::MatrixIndexSet::size_type |
|
inline |
Default constructor.
Constructor setting the matrix size.
Add an index to the index set.
Referenced by import().
|
inline |
Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.
MatrixType | Needs to be BCRSMatrix<...> |
matrix | reference to the MatrixType object |
Reset the size of an index set.
References rows().
|
inline |
Return the number of rows.
Referenced by resize().
Return the number of entries in a given row.
References row.
|
inline |
Return the number of entries.