Chroma::LinOpSysSolverCGArray< T > Class Template Reference
[Inverters]

Solve a M*psi=chi linear system by CG2. More...

#include <syssolver_linop_cg_array.h>

Inheritance diagram for Chroma::LinOpSysSolverCGArray< T >:

Chroma::LinOpSystemSolverArray< T > Chroma::SystemSolverArray< T > List of all members.

Public Member Functions

 LinOpSysSolverCGArray (Handle< LinearOperatorArray< T > > A_, const SysSolverCGParams &invParam_)
 Constructor.
 ~LinOpSysSolverCGArray ()
 Destructor is automatic.
int size () const
 Expected length of array index.
const Subset & subset () const
 Return the subset on which the operator acts.
SystemSolverResults_t operator() (multi1d< T > &psi, const multi1d< T > &chi) const
 Solver the linear system.

Private Member Functions

 LinOpSysSolverCGArray ()

Private Attributes

Handle< LinearOperatorArray<
T > > 
A
SysSolverCGParams invParam

Detailed Description

template<typename T>
class Chroma::LinOpSysSolverCGArray< T >

Solve a M*psi=chi linear system by CG2.

Definition at line 34 of file syssolver_linop_cg_array.h.


Constructor & Destructor Documentation

template<typename T>
Chroma::LinOpSysSolverCGArray< T >::LinOpSysSolverCGArray ( Handle< LinearOperatorArray< T > >  A_,
const SysSolverCGParams invParam_ 
) [inline]

Constructor.

Parameters:
M_ Linear operator ( Read )
invParam inverter parameters ( Read )

Definition at line 42 of file syssolver_linop_cg_array.h.

template<typename T>
Chroma::LinOpSysSolverCGArray< T >::~LinOpSysSolverCGArray (  )  [inline]

Destructor is automatic.

Definition at line 48 of file syssolver_linop_cg_array.h.

template<typename T>
Chroma::LinOpSysSolverCGArray< T >::LinOpSysSolverCGArray (  )  [inline, private]

Definition at line 94 of file syssolver_linop_cg_array.h.


Member Function Documentation

template<typename T>
SystemSolverResults_t Chroma::LinOpSysSolverCGArray< T >::operator() ( multi1d< T > &  psi,
const multi1d< T > &  chi 
) const [inline, virtual]

Solver the linear system.

Parameters:
psi solution ( Modify )
chi source ( Read )
Returns:
syssolver results

Implements Chroma::SystemSolverArray< T >.

Definition at line 62 of file syssolver_linop_cg_array.h.

References Chroma::LinOpSysSolverCGArray< T >::A, END_CODE, Chroma::InvCG2(), Chroma::LinOpSysSolverCGArray< T >::invParam, Chroma::SysSolverCGParams::MaxCG, Chroma::SysSolverCGParams::MaxCGRestart, Chroma::MINUS, Chroma::n_count, Chroma::SysSolverCGParams::RsdCG, Chroma::SysSolverCGParams::RsdCGRestart, Chroma::LinOpSysSolverCGArray< T >::size(), and START_CODE.

template<typename T>
int Chroma::LinOpSysSolverCGArray< T >::size ( void   )  const [inline, virtual]

Expected length of array index.

Implements Chroma::SystemSolverArray< T >.

Definition at line 51 of file syssolver_linop_cg_array.h.

References Chroma::LinOpSysSolverCGArray< T >::A.

Referenced by Chroma::LinOpSysSolverCGArray< T >::operator()().

template<typename T>
const Subset& Chroma::LinOpSysSolverCGArray< T >::subset ( void   )  const [inline, virtual]

Return the subset on which the operator acts.

Implements Chroma::SystemSolverArray< T >.

Definition at line 54 of file syssolver_linop_cg_array.h.

References Chroma::LinOpSysSolverCGArray< T >::A.


Member Data Documentation

template<typename T>
Handle< LinearOperatorArray<T> > Chroma::LinOpSysSolverCGArray< T >::A [private]

Definition at line 96 of file syssolver_linop_cg_array.h.

Referenced by Chroma::LinOpSysSolverCGArray< T >::operator()(), Chroma::LinOpSysSolverCGArray< T >::size(), and Chroma::LinOpSysSolverCGArray< T >::subset().

template<typename T>
SysSolverCGParams Chroma::LinOpSysSolverCGArray< T >::invParam [private]

Definition at line 97 of file syssolver_linop_cg_array.h.

Referenced by Chroma::LinOpSysSolverCGArray< T >::operator()().


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 04:40:06 2009 for CHROMA by  doxygen 1.4.7