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

Represents the inverse of a LDU factored matrix. More...

#include <TFacInvMatrix.hh>

Inheritance diagram for TLDUInvMatrix:
TFacInvMatrix TLinearOperator TTypeInfo

Public Member Functions

 TLDUInvMatrix (const TMatrix *afac_matrix, const eval_type_t aeval_type=CFG::Arith::eval_type, const bool external_memory=true)
 
 TLDUInvMatrix (const TScalarVector *D1, const TMatrix *afac_matrix, const TScalarVector *D2, const eval_type_t aeval_type=CFG::Arith::eval_type, const bool external_memory=true)
 
virtual ~TLDUInvMatrix ()
 dtor
 
virtual void solve (TVector *x, const matop_t op) const
 
- Public Member Functions inherited from TFacInvMatrix
 TFacInvMatrix (const TMatrix *afac_matrix, const eval_type_t aeval_type=CFG::Arith::eval_type, const bool external_memory=true)
 
 TFacInvMatrix (const TScalarVector *D1, const TMatrix *afac_matrix, const TScalarVector *D2, const eval_type_t aeval_type=CFG::Arith::eval_type, const bool external_memory=true)
 
virtual ~TFacInvMatrix ()
 dtor
 
const TMatrixmatrix () const
 access factorised matrix
 
bool has_scaling () const
 return true if diagonal scaling is used
 
const TScalarVectorscaling_left () const
 return left scaling matrix
 
const TScalarVectorscaling_right () const
 return right scaling matrix
 
eval_type_t eval_type () const
 return evaluation type (pointwise/blockwise)
 
const TMatrixfac_matrix () const
 return internal matrix object
 
bool is_complex () const
 return true, if field type is complex
 
bool is_self_adjoint () const
 return true, of operator is self adjoint
 
virtual void apply (const TVector *x, TVector *y, const matop_t op) const
 
virtual void apply_add (const real alpha, const TVector *x, TVector *y, const matop_t op) const
 
virtual auto domain_vector () const -> std::unique_ptr< TVector >
 return vector in domain space
 
virtual auto range_vector () const -> std::unique_ptr< TVector >
 return vector in range space
 
- Public Member Functions inherited from TTypeInfo
virtual typeid_t type () const =0
 return type ID of object
 
virtual bool is_type (const typeid_t t) const
 return true if local object is of given type ID t
 
virtual std::string typestr () const
 return string representation of type
 

Detailed Description

Evaluates $ (LDU)^{-1} $.

Constructor & Destructor Documentation

TLDUInvMatrix ( const TMatrix afac_matrix,
const eval_type_t  aeval_type = CFG::Arith::eval_type,
const bool  external_memory = true 
)
inline

construct inverse operator with LDU factorised matrix afac_matrix (no diagonal scaling applied)

TLDUInvMatrix ( const TScalarVector D1,
const TMatrix afac_matrix,
const TScalarVector D2,
const eval_type_t  aeval_type = CFG::Arith::eval_type,
const bool  external_memory = true 
)
inline

construct inverse operator with LDU factorised matrix afac_matrix and additional row and column scaling factors D1 and D2

Member Function Documentation

virtual void solve ( TVector x,
const matop_t  op 
) const
virtual

solve op(A) x = y with given y (supplied in x)

Implements TFacInvMatrix.