HLIBpro  2.3.1
Public Member Functions | Protected Member Functions | List of all members
TSpectralNorm Class Reference

computes spectral norm ‖·‖₂ of matrix (or linear operator)

#include <mat_norm.hh>

Inheritance diagram for TSpectralNorm:
TMatrixNorm

Public Member Functions

 TSpectralNorm (const uint min_it=10, const uint max_it=100, const real rel_eps=real(1e-5), const real abs_eps=real(100)*std::numeric_limits< real >::epsilon())
 construct spectral norm object with given stop criterion
 
virtual ~TSpectralNorm ()
 dtor
 
virtual real norm (const TMatrix *A) const
 compute the norm of A
 
virtual real diff_norm (const TMatrix *A, const TMatrix *B, const bool rel=true) const
 compute difference norm ‖A-B‖ or ‖A-B‖/‖A‖ (if rel == true)
 
virtual real norm (const TLinearOperator *A) const
 compute spectral norm of A
 
virtual real diff_norm (const TLinearOperator *A, const TLinearOperator *B, const bool rel=true) const
 compute difference norm ‖A-B‖₂ or ‖A-B‖₂/‖A‖₂ (if rel == true)
 
virtual real inv_norm (const TLinearOperator *A) const
 compute spectral norm of A^-1
 
virtual real inv_approx (const TLinearOperator *A, const TLinearOperator *B) const
 compute ‖ I - B A ‖₂
 

Protected Member Functions

bool converged (const complex new_val, const complex old_val, const uint step) const
 return true if stop condition of power iteration is fulfilled