Dune::MatrixIndexSet Class Reference
#include <matrixindexset.hh>
Detailed Description
Stores the nonzero entries in a sparse matrix.Public Member Functions | |
MatrixIndexSet () | |
Default constructor. | |
MatrixIndexSet (int rows, int cols) | |
Constructor setting the matrix size. | |
void | resize (int rows, int cols) |
Reset the size of an index set. | |
void | add (int i, int j) |
Add an index to the index set. | |
int | size () const |
Return the number of entries. | |
int | rows () const |
Return the number of rows. | |
int | rowsize (int row) const |
Return the number of entries in a given row. | |
template<class MatrixType> | |
void | import (const MatrixType &m, int rowOffset=0, int colOffset=0) |
Import all nonzero entries of a sparse matrix into the index set. | |
template<class MatrixType> | |
void | exportIdx (MatrixType &matrix) const |
Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet. |
Member Function Documentation
template<class MatrixType>
void Dune::MatrixIndexSet::import | ( | const MatrixType & | m, | |
int | rowOffset = 0 , |
|||
int | colOffset = 0 | |||
) | [inline] |
Import all nonzero entries of a sparse matrix into the index set.
- Parameters:
-
MatrixType Needs to be BCRSMatrix<...> matrix reference to the MatrixType object
template<class MatrixType>
void Dune::MatrixIndexSet::exportIdx | ( | MatrixType & | matrix | ) | const [inline] |
Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.
- Parameters:
-
MatrixType Needs to be BCRSMatrix<...> matrix reference to the MatrixType object
The documentation for this class was generated from the following file: