|
dune-istl 2.8.0
|
Loading...
Searching...
No Matches
Dune::MatrixIndexSet Class Reference
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. | |
| MatrixIndexSet (size_type rows, size_type cols) | |
| Constructor setting the matrix size. | |
| void | resize (size_type rows, size_type cols) |
| Reset the size of an index set. | |
| void | add (size_type i, size_type j) |
| Add an index to the index set. | |
| size_type | size () const |
| Return the number of entries. | |
| size_type | rows () const |
| Return the number of rows. | |
| size_type | rowsize (size_type row) const |
| Return the number of entries in a given row. | |
| 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. | |
| template<class MatrixType > | |
| void | exportIdx (MatrixType &matrix) const |
| Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet. | |
Detailed Description
Stores the nonzero entries in a sparse matrix.
Member Typedef Documentation
◆ size_type
Constructor & Destructor Documentation
◆ MatrixIndexSet() [1/2]
|
inline |
Default constructor.
◆ MatrixIndexSet() [2/2]
Constructor setting the matrix size.
Member Function Documentation
◆ add()
◆ exportIdx()
template<class MatrixType >
|
inline |
Initializes a BCRSMatrix with the indices contained in this MatrixIndexSet.
- Template Parameters
-
MatrixType Needs to be BCRSMatrix<...>
- Parameters
-
matrix reference to the MatrixType object
◆ import()
template<class MatrixType >
|
inline |
Import all nonzero entries of a sparse matrix into the index set.
- Template Parameters
-
MatrixType Needs to be BCRSMatrix<...>
- Parameters
-
m reference to the MatrixType object rowOffset don't write to rows<rowOffset colOffset don't write to cols<colOffset
◆ resize()
Reset the size of an index set.
◆ rows()
|
inline |
Return the number of rows.
◆ rowsize()
Return the number of entries in a given row.
◆ size()
|
inline |
Return the number of entries.
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8