HLIBpro
2.4
|
Represents a level-wise hierarchy of matrices. More...
#include <TMatrixHierarchy.hh>
Classes | |
class | TSparseBlockMatrix |
Represents a n×m block matrix with only a small number of non-null sub matrices stored in an efficient way. More... | |
Public Member Functions | |
TMatrixHierarchy () | |
construct an empty hierarchy | |
TMatrixHierarchy (TMatrix *A, const bool with_blocked) | |
~TMatrixHierarchy () | |
destructor | |
size_t | n_levels () const |
return number of levels in hierarchy | |
TSparseBlockMatrix * | matrix (const size_t lvl) |
return blockmatrix for given level | |
TMatrix * | block (const size_t lvl, const TIndexSet &row_is, const TIndexSet &col_is) |
return matrix defined by is0×is1 on given level | |
TMatrix * | block_containing (const size_t lvl, const TIndexSet &row_is, const TIndexSet &col_is) |
return matrix t×s with is0×is1 ⊆ t×s on given level | |
size_t | byte_size () const |
return size in bytes used by this object | |
void | print (const uint ofs=0) const |
print content of matrix hierarchy | |
Stores a hierarchy of block matrices, such that each level matrix holds all matrices (or leaves) of that level of a given matrix.
TMatrixHierarchy | ( | TMatrix * | A, |
const bool | with_blocked | ||
) |
construct a hierarchy based on given matrix A
A | matrix to construct hierarchy with |
with_blocked | if true, also block matrices will be stored in hierarchy |