KASKADE 7 development version
|
Providing a matrix or array interface to LAPACK-ordered entries. More...
#include <localMatrices.hh>
Providing a matrix or array interface to LAPACK-ordered entries.
The class represents dense or diagonal matrices, depending on the template argument diagonal.
Entry | the type of matrix entries |
diagonal | if true, only diagonal |
SortedRowIdx | a range of row indices (global row, local row) sorted ascendingly by global row |
SortedColIdx | a range of column indices (global col, local col) sorted ascendingly by global col |
Definition at line 37 of file localMatrices.hh.
Public Member Functions | |
LocalMatrix (SortedRowIdx const &ridx, SortedColIdx const &cidx, Entry *data_) | |
SortedRowIdx | ridx () const |
A sequence of (global row, local row) indices, sorted ascendingly by global row. More... | |
SortedColIdx | cidx () const |
A sequence of (global col, local col) indices, sorted ascendingly by global col. More... | |
size_t | size () const |
The number of entries stored. More... | |
void | relocate (Entry *newData) |
Resets the data pointer. More... | |
Entry access and assignment | |
Entry & | operator() (int row, int col) |
Access the matrix entries. More... | |
Entry const & | operator() (int row, int col) const |
LocalMatrix & | operator= (DynamicMatrix< Entry > const &Aloc) |
Assignment. More... | |
Static Public Attributes | |
static bool const | lumped = diagonal |
|
inline |
Definition at line 42 of file localMatrices.hh.
|
inline |
A sequence of (global col, local col) indices, sorted ascendingly by global col.
Definition at line 55 of file localMatrices.hh.
Referenced by Kaskade::LocalMatrix< Entry, diagonal, SortedRowIdx, SortedColIdx >::operator()(), Kaskade::operator<<(), Kaskade::LocalMatrix< Entry, diagonal, SortedRowIdx, SortedColIdx >::operator=(), and Kaskade::LocalMatrix< Entry, diagonal, SortedRowIdx, SortedColIdx >::size().
|
inline |
Access the matrix entries.
For diagonal matrices, row==col must hold.
Definition at line 86 of file localMatrices.hh.
|
inline |
Definition at line 101 of file localMatrices.hh.
|
inline |
Assignment.
The given matrix has to have the same size as the local matrix. If the local matrix is diagonal, only the diagonal of Aloc
is accessed and copied.
Definition at line 121 of file localMatrices.hh.
|
inline |
Resets the data pointer.
Definition at line 71 of file localMatrices.hh.
|
inline |
A sequence of (global row, local row) indices, sorted ascendingly by global row.
Definition at line 50 of file localMatrices.hh.
Referenced by Kaskade::operator<<(), Kaskade::LocalMatrix< Entry, diagonal, SortedRowIdx, SortedColIdx >::operator=(), and Kaskade::LocalMatrix< Entry, diagonal, SortedRowIdx, SortedColIdx >::size().
|
inline |
The number of entries stored.
This is either \( nm \) for general local matrices or \( n \) for diagonal matrices.
Definition at line 63 of file localMatrices.hh.
Referenced by Kaskade::LocalMatrix< Entry, diagonal, SortedRowIdx, SortedColIdx >::operator=().
|
static |
Definition at line 40 of file localMatrices.hh.