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

computes spectral norm ‖·‖₂ of matrix

#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 spectral norm of A
virtual real diff_norm (const TMatrix *A, const TMatrix *B, bool rel=true) const
 compute difference norm ‖A-B‖₂ or ‖A-B‖₂/‖A‖₂ (if == true)
virtual real inv_norm (const TMatrix *A) const
 compute spectral norm of A^-1
virtual real inv_approx (const TMatrix *A, const TMatrix *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