1.4.0
CCC
 
ALinearOpMulti Class Referenceabstract

#include <ALinearOpMulti.hpp>

Inheritance diagram for ALinearOpMulti:
PrecisionOpMultiConditional PrecisionOpMultiConditionalCs

Public Member Functions

 ALinearOpMulti (int nitermax=1000, double eps=EPSILON8)
 
 ALinearOpMulti (const ALinearOpMulti &m)
 
ALinearOpMultioperator= (const ALinearOpMulti &m)
 
virtual ~ALinearOpMulti ()
 
void initLk (const std::vector< Eigen::VectorXd > &inv, std::vector< Eigen::VectorXd > &outv) const
 
virtual int sizes () const =0
 
virtual int size (int) const =0
 
void setNIterMax (int nitermax)
 
void setNIterRestart (int niterrestart)
 
void setEps (double eps)
 
void setPrecond (const ALinearOpMulti *precond, int status)
 
const LogStatsgetLogStats () const
 
void prepare () const
 
void setUserInitialValue (bool b)
 
void evalDirect (const std::vector< Eigen::VectorXd > &inv, std::vector< Eigen::VectorXd > &outv) const
 
virtual void evalInverse (const std::vector< Eigen::VectorXd > &vecin, std::vector< Eigen::VectorXd > &vecout) const
 

Public Attributes

std::vector< Eigen::VectorXd > _temp
 
std::vector< Eigen::VectorXd > _p
 
std::vector< Eigen::VectorXd > _z
 
double _nb
 

Constructor & Destructor Documentation

◆ ALinearOpMulti() [1/2]

ALinearOpMulti::ALinearOpMulti ( int  nitermax = 1000,
double  eps = EPSILON8 
)

◆ ALinearOpMulti() [2/2]

ALinearOpMulti::ALinearOpMulti ( const ALinearOpMulti m)

◆ ~ALinearOpMulti()

ALinearOpMulti::~ALinearOpMulti ( )
virtual

Member Function Documentation

◆ evalDirect()

void ALinearOpMulti::evalDirect ( const std::vector< Eigen::VectorXd > &  inv,
std::vector< Eigen::VectorXd > &  outv 
) const

Evaluate the product: 'outv' = Q * 'inv'

Parameters
[in]invArray of input values
[out]outvArray of output values

◆ evalInverse()

void ALinearOpMulti::evalInverse ( const std::vector< Eigen::VectorXd > &  vecin,
std::vector< Eigen::VectorXd > &  vecout 
) const
virtual

Evaluate the product: 'outv' = Q^{-1} * 'inv' by conjugate gradient

Parameters
[in]vecinArray of input values
[out]vecoutArray of output values. Will be used as initial value if _userInitialValue is true.

Reimplemented in PrecisionOpMultiConditionalCs.

◆ getLogStats()

const LogStats& ALinearOpMulti::getLogStats ( ) const
inline

◆ initLk()

void ALinearOpMulti::initLk ( const std::vector< Eigen::VectorXd > &  inv,
std::vector< Eigen::VectorXd > &  outv 
) const

◆ operator=()

ALinearOpMulti & ALinearOpMulti::operator= ( const ALinearOpMulti m)

◆ prepare()

void ALinearOpMulti::prepare ( ) const

This method intends to resize the different working arrays. It is considered as const in order to avoid breaking constness of calling function

◆ setEps()

void ALinearOpMulti::setEps ( double  eps)
inline

◆ setNIterMax()

void ALinearOpMulti::setNIterMax ( int  nitermax)
inline

◆ setNIterRestart()

void ALinearOpMulti::setNIterRestart ( int  niterrestart)
inline

◆ setPrecond()

void ALinearOpMulti::setPrecond ( const ALinearOpMulti precond,
int  status 
)

Define the Pre-Conditioner facility

Parameters
[in]precondPointer to a ALinearOp operator
[in]statusStatus of this Pre-conditioner
  • 0 : not defined and therefore not used
  • -1 : Pre-conditioner is the Q_{-1}
  • 1 : Pre-conditioner is the Q
Remarks
When 'precond' argument is not provided, 'status' is forced to 0

◆ setUserInitialValue()

void ALinearOpMulti::setUserInitialValue ( bool  b)
inline

◆ size()

virtual int ALinearOpMulti::size ( int  ) const
pure virtual

Implemented in PrecisionOpMultiConditional.

◆ sizes()

virtual int ALinearOpMulti::sizes ( ) const
pure virtual

Implemented in PrecisionOpMultiConditional.

Member Data Documentation

◆ _nb

double ALinearOpMulti::_nb
mutable

◆ _p

std::vector<Eigen::VectorXd> ALinearOpMulti::_p
mutable

◆ _temp

std::vector<Eigen::VectorXd> ALinearOpMulti::_temp
mutable

◆ _z

std::vector<Eigen::VectorXd> ALinearOpMulti::_z
mutable

The documentation for this class was generated from the following files: