![]() |
Dune-Fufem 2.11-git
|
A sparse matrix built by entry-wise transformation. More...
#include <dune/fufem/mappedmatrix.hh>
Classes | |
| class | RealRowIterator |
| Iterator access to matrix rows More... | |
Public Types | |
| using | size_type = typename Matrix::size_type |
| typedef MappedMatrixRow< Map > | row_type |
| typedef Map::block_type | block_type |
| typedef MappedMatrixColIterator< Map > | ConstColIterator |
| using | const_iterator = RealRowIterator< const row_type > |
| The const iterator over the matrix rows. | |
Public Member Functions | |
| MappedMatrix (const Map &map, const Matrix &matrix) | |
| auto | begin () const |
| Get const iterator to first row. | |
| auto | end () const |
| Get const iterator to one beyond last row. | |
| size_type | N () const |
| Number of matrix rows. | |
| size_type | M () const |
| Number of matrix columns. | |
| const row_type | operator[] (int row) const |
| template<class X , class Y > | |
| void | mv (const X &x, Y &y) const |
Protected Attributes | |
| const Map * | map_ |
| const Matrix * | matrix_ |
Friends | |
| template<typename M > | |
| class | MatrixDimension |
Detailed Description
class MappedMatrix< Map >
A sparse matrix built by entry-wise transformation.
MappedMatrix represents a sparse matrix that is obtained by transforming each entry of some given matrix. The transformed entries are not stored but computed on the fly when dereferencing the corresponding iterators. The given map transforms each entry into rowFactor x colFactor entries that may also have a different block type.
- Template Parameters
-
Map Type of transformation map
The type Map must implement the following interface
Example use cases: With rowFactor=colFactor=1 one can e.g. map each entry of the original matrix to its local matrix norm. Conversely one can map scalar entries to a local matrices. With rowFactor,colFactor>1 one can e.g. duplicate rows or columns.
Member Typedef Documentation
◆ block_type
| typedef Map::block_type MappedMatrix< Map >::block_type |
◆ const_iterator
| using MappedMatrix< Map >::const_iterator = RealRowIterator<const row_type> |
The const iterator over the matrix rows.
◆ ConstColIterator
| typedef MappedMatrixColIterator<Map> MappedMatrix< Map >::ConstColIterator |
◆ row_type
| typedef MappedMatrixRow<Map> MappedMatrix< Map >::row_type |
◆ size_type
| using MappedMatrix< Map >::size_type = typename Matrix::size_type |
Constructor & Destructor Documentation
◆ MappedMatrix()
|
inline |
Member Function Documentation
◆ begin()
|
inline |
Get const iterator to first row.
◆ end()
|
inline |
Get const iterator to one beyond last row.
◆ M()
|
inline |
Number of matrix columns.
◆ mv()
|
inline |
◆ N()
|
inline |
Number of matrix rows.
◆ operator[]()
|
inline |
Friends And Related Symbol Documentation
◆ MatrixDimension
Member Data Documentation
◆ map_
|
protected |
◆ matrix_
|
protected |
The documentation for this class was generated from the following file:
