HLIBpro  2.2
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_inner)
 
 ~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
 
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_inner 
)

construct a hierarchy based on given matrix A

Parameters
Amatrix to construct hierarchy with
with_innerif true, also inner nodes will be stored in hierarchy