- Home
- About DUNE
- Download
- Documentation
- Community
- Development
Stores the nonzero entries in a sparse matrix. More...
#include <dune/istl/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. |
Stores the nonzero entries in a sparse matrix.
Dune::MatrixIndexSet::MatrixIndexSet | ( | ) | [inline] |
Default constructor.
Dune::MatrixIndexSet::MatrixIndexSet | ( | int | rows, | |
int | cols | |||
) | [inline] |
Constructor setting the matrix size.
void Dune::MatrixIndexSet::add | ( | int | i, | |
int | j | |||
) | [inline] |
Add an index to the index set.
Referenced by import().
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 |
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<...> |
m | reference to the MatrixType object | |
rowOffset | don't write to rows<rowOffset | |
colOffset | don't write to cols<colOffset |
void Dune::MatrixIndexSet::resize | ( | int | rows, | |
int | cols | |||
) | [inline] |
Reset the size of an index set.
int Dune::MatrixIndexSet::rows | ( | ) | const [inline] |
Return the number of rows.
int Dune::MatrixIndexSet::rowsize | ( | int | row | ) | const [inline] |
Return the number of entries in a given row.
int Dune::MatrixIndexSet::size | ( | ) | const [inline] |
Return the number of entries.
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].