HLIBpro  1.2
Public Member Functions | Protected Attributes | List of all members
TSparseMBuilder Class Reference

Creates matrices out of sparse matrices.

#include <TMatBuilder.hh>

Inheritance diagram for TSparseMBuilder:
TMatBuilder

Public Member Functions

 TSparseMBuilder (const TSparseMatrix *sparse_mat, const TPermutation *row_perm_i2e, const TPermutation *col_perm_e2i)
 construct TSparseMBuilder object with given sparse matrix and permutations
void set_sparse_mode (const bool b)
 (de-) activate construction of sparse leaves
virtual TMatrixbuild_leaf (const TBlockCluster *bc, const matform_t matformat, const TTruncAcc &acc) const
 construct matrices for leaves in block cluster tree
virtual TMatrixbuild_ghost (const TBlockCluster *bc) const
 build placeholder matrix for remote blocks
- Public Member Functions inherited from TMatBuilder
 TMatBuilder (const bool coarsening=CFG::Arith::coarsen_build)
void set_coarsening (const bool b)
 (de-) activate coarsening with standard accuracy
void set_coarsening (const TTruncAcc &acc)
 activate coarsening with accuracy acc
virtual TMatrixbuild (const uint nthreads, const TBlockClusterTree *bct, const TTruncAcc &acc, TProgressBar *progress=NULL) const
 build the H-matrix with block-wise accuracy defined by acc
virtual TMatrixbuild (const uint nthreads, const TBlockCluster *bc, const TTruncAcc &acc, TProgressBar *progress=NULL) const
virtual TMatrixbuild (const uint nthreads, const TBlockClusterTree *cluster, const matform_t matformat, const TTruncAcc &acc, TProgressBar *progress=NULL) const
 same as
virtual TMatrixbuild (const uint nthreads, const TBlockCluster *cluster, const matform_t matformat, const TTruncAcc &acc, TProgressBar *progress=NULL) const
 same as

Protected Attributes

const TSparseMatrix_sparse_mat
 sparse matrix holding coefficients
const TPermutation_row_perm_i2e
 mapping of of internal numbering (in row cluster tree) to external numbering (in sparse matrix)
const TPermutation_col_perm_e2i
 mapping of of external numbering (in sparse matrix) to internal numbering (in column cluster tree)
bool _build_sparse
 if true, build sparse matrices in leaves
- Protected Attributes inherited from TMatBuilder
bool _coarsening
 if true, coarsening is applied during construction
bool _use_construct_acc
TTruncAcc _coarse_acc
 defines coarsening accuracy

Additional Inherited Members

- Protected Member Functions inherited from TMatBuilder
virtual TMatrixthr_build (const uint nthreads, const TBlockCluster *bc, const matform_t matformat, const TTruncAcc &acc, TProgressBar *progress) const
 threaded building process
virtual TBlockMatrixbuild_blocked (const TBlockCluster *bc) const
 build blocked matrix
virtual matform_t matrix_format () const =0
 return matrix format