HLIBpro  2.4
Classes | Public Member Functions | List of all members
TMatrixHierarchy Class Reference

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
 
TSparseBlockMatrixmatrix (const size_t lvl)
 return blockmatrix for given level
 
TMatrixblock (const size_t lvl, const TIndexSet &row_is, const TIndexSet &col_is)
 return matrix defined by is0×is1 on given level
 
TMatrixblock_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
 

Detailed Description

Stores a hierarchy of block matrices, such that each level matrix holds all matrices (or leaves) of that level of a given matrix.

Constructor & Destructor Documentation

TMatrixHierarchy ( TMatrix A,
const bool  with_blocked 
)

construct a hierarchy based on given matrix A

Parameters
Amatrix to construct hierarchy with
with_blockedif true, also block matrices will be stored in hierarchy