#include <matrixindexset.hh>
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. |
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.
MatrixType | Needs to be BCRSMatrix<...> | |
matrix | reference to the MatrixType object |
void Dune::MatrixIndexSet::exportIdx | ( | MatrixType & | matrix | ) | const [inline] |
Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.
MatrixType | Needs to be BCRSMatrix<...> | |
matrix | reference to the MatrixType object |