HLIBpro  2.2
Public Member Functions | List of all members
TPermMatrix Class Reference

#include <TPermMatrix.hh>

Inheritance diagram for TPermMatrix:
TLinearOperator TTypeInfo

Public Member Functions

virtual bool is_complex () const
 return true, if field type is complex
 
virtual bool is_self_adjoint () const
 return true, of operator is self adjoint
 
virtual void apply (const TVector *x, TVector *y, const matop_t op=MATOP_NORM) const
 
virtual void apply_add (const real alpha, const TVector *x, TVector *y, const matop_t op=MATOP_NORM) const
 
virtual TVectordomain_vector () const
 return vector in domain space
 
virtual TVectorrange_vector () const
 return vector in range space
 
virtual typeid_t type () const
 return type ID of matrix
 
virtual bool is_type (const typeid_t t) const
 return true if local object is of given type ID t
 
- Public Member Functions inherited from TTypeInfo
virtual std::string typestr () const
 return string representation of type
 

Detailed Description

implements a permuted matrix, e.g., P·A·R

For a given, general matrix A and two permutations R, P, the product $P \cdot A \cdot R$ is represented. If P/R is nullptr, it is treated as identity.

Member Function Documentation

virtual void apply ( const TVector x,
TVector y,
const matop_t  op = MATOP_NORM 
) const
virtual

mapping function of linear operator $A$, e.g. $ y := A(x)$. Depending on op, either $A$, $A^T$ or $A^H$ is applied.

Implements TLinearOperator.

virtual void apply_add ( const real  alpha,
const TVector x,
TVector y,
const matop_t  op = MATOP_NORM 
) const
virtual

mapping function with update: $ y := y + \alpha A(x)$. Depending on op, either $A$, $A^T$ or $A^H$ is applied.

Implements TLinearOperator.