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

Truncation accuracy defined blockwise for block index sets.

#include <TTruncAcc.hh>

Inheritance diagram for TBlockTruncAcc:
TTruncAcc

Public Member Functions

 TBlockTruncAcc ()
 
 TBlockTruncAcc (const size_t k, const double absolute_eps=CFG::Arith::abs_eps)
 
 TBlockTruncAcc (const double relative_eps, const double absolute_eps=CFG::Arith::abs_eps)
 
 TBlockTruncAcc (const std::vector< TIndexSet > &row_idx_sets, const std::vector< TIndexSet > &col_idx_sets, const std::vector< TTruncAcc > &block_acc)
 
 TBlockTruncAcc (const TBlockTruncAcc &ta)
 
virtual const TTruncAccacc (const TBlockCluster *bc) const
 return accuracy description for individual subblock defined by cluster
 
virtual const TTruncAccacc (const TMatrix *M) const
 return accuracy description for individual subblock defined by matrix
 
TBlockTruncAccoperator= (const TBlockTruncAcc &ta)
 copy operator
 
virtual std::string to_string () const
 return string representation
 
- Public Member Functions inherited from TTruncAcc
 TTruncAcc ()
 
 TTruncAcc (const size_t k, const double absolute_eps=CFG::Arith::abs_eps)
 
 TTruncAcc (const double relative_eps, const double absolute_eps=CFG::Arith::abs_eps)
 
 TTruncAcc (const TTruncAcc &ta)
 
template<typename T >
size_t trunc_rank (const BLAS::Vector< T > &sv) const
 
const TTruncAccoperator() (const TBlockCluster *bc) const
 abbreviation via () operator
 
const TTruncAccoperator() (const TMatrix *M) const
 abbreviation via () operator
 
size_t rank () const
 return fixed rank
 
size_t max_rank () const
 return maximal rank
 
double rel_eps () const
 return relative accuracy
 
double abs_eps () const
 return absolute accuracy
 
bool is_fixed_rank () const
 return true if accuracy is fixed rank
 
bool is_exact () const
 return true if accuracy is "exact"
 
void set_max_rank (const size_t k)
 set maximal rank in truncation
 
TTruncAccoperator= (const TTruncAcc &ta)
 copy operator
 

Constructor & Destructor Documentation

TBlockTruncAcc ( )
inline

construct exact accuracy object

TBlockTruncAcc ( const size_t  k,
const double  absolute_eps = CFG::Arith::abs_eps 
)
inline

construct accuracy object for fixed rank truncation

TBlockTruncAcc ( const double  relative_eps,
const double  absolute_eps = CFG::Arith::abs_eps 
)
inline

construct accuracy object for fixed accuracy truncation

TBlockTruncAcc ( const std::vector< TIndexSet > &  row_idx_sets,
const std::vector< TIndexSet > &  col_idx_sets,
const std::vector< TTruncAcc > &  block_acc 
)
inline

construct accuracy object for block wise accuracy

TBlockTruncAcc ( const TBlockTruncAcc ta)
inline

copy constructor