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

Solve a M*psi=chi linear system by biCG with eigenvectors. More...

#include <syssolver_linop_OPTeigbicg.h>

Inheritance diagram for Chroma::LinOpSysSolverOptEigBiCG< T >:

Chroma::LinOpSystemSolver< T > Chroma::SystemSolver< T > List of all members.

Public Member Functions

void QIOWriteOptEvecs ()
 Write out an OptEigInfo Type.
void QIOReadOptEvecs ()
 Read a OptEigInfo Type.
 LinOpSysSolverOptEigBiCG (Handle< LinearOperator< T > > A_, const SysSolverOptEigBiCGParams &invParam_)
 Constructor.
 ~LinOpSysSolverOptEigBiCG ()
 Destructor is automatic.
const Subset & subset () const
 Return the subset on which the operator acts.
SystemSolverResults_t operator() (T &psi, const T &chi) const
 Solver the linear system.
SystemSolverResults_t operator() (T &psi, const T &chi, AbsChronologicalPredictor4D< T > &predictor) const
 Solve the linear system starting with a chrono guess.
template<>
SystemSolverResults_t operator() (LatticeFermionF &psi, const LatticeFermionF &chi) const
template<>
SystemSolverResults_t operator() (LatticeFermionD &psi, const LatticeFermionD &chi) const
template<>
SystemSolverResults_t operator() (LatticeStaggeredFermionF &psi, const LatticeStaggeredFermionF &chi) const
template<>
SystemSolverResults_t operator() (LatticeStaggeredFermionD &psi, const LatticeStaggeredFermionD &chi) const

Private Member Functions

 LinOpSysSolverOptEigBiCG ()

Private Attributes

int numMatvecs
Handle< LinearOperator< T > > A
SysSolverOptEigBiCGParams invParam

Detailed Description

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

Solve a M*psi=chi linear system by biCG with eigenvectors.

Definition at line 37 of file syssolver_linop_OPTeigbicg.h.


Constructor & Destructor Documentation

template<typename T>
Chroma::LinOpSysSolverOptEigBiCG< T >::LinOpSysSolverOptEigBiCG ( Handle< LinearOperator< T > >  A_,
const SysSolverOptEigBiCGParams invParam_ 
) [inline]

Constructor.

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

Definition at line 192 of file syssolver_linop_OPTeigbicg.h.

References Chroma::LinOpSysSolverOptEigBiCG< T >::A, Chroma::SysSolverOptEigBiCGParams::eigen_id, Chroma::SysSolverOptEigBiCGParams::file, Chroma::SingletonHolder< T, CreationPolicy, LifetimePolicy, ThreadingModel >::Instance(), Chroma::LinOpSysSolverOptEigBiCG< T >::invParam, Chroma::SysSolverOptEigBiCGParams::Neig_max, Chroma::LinOpSysSolverOptEigBiCG< T >::numMatvecs, Chroma::LinOpSysSolverOptEigBiCG< T >::QIOReadOptEvecs(), Chroma::SysSolverOptEigBiCGParams::File_t::read, and Chroma::SysSolverOptEigBiCGParams::restartTol.

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

Destructor is automatic.

Definition at line 215 of file syssolver_linop_OPTeigbicg.h.

References Chroma::SysSolverOptEigBiCGParams::cleanUpEvecs, Chroma::SysSolverOptEigBiCGParams::eigen_id, Chroma::SysSolverOptEigBiCGParams::file, Chroma::SingletonHolder< T, CreationPolicy, LifetimePolicy, ThreadingModel >::Instance(), Chroma::LinOpSysSolverOptEigBiCG< T >::invParam, Chroma::LinOpSysSolverOptEigBiCG< T >::QIOWriteOptEvecs(), and Chroma::SysSolverOptEigBiCGParams::File_t::write.

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

Definition at line 272 of file syssolver_linop_OPTeigbicg.h.


Member Function Documentation

template<>
SystemSolverResults_t Chroma::LinOpSysSolverOptEigBiCG< LatticeStaggeredFermionD >::operator() ( LatticeStaggeredFermionD &  psi,
const LatticeStaggeredFermionD &  chi 
) const

Definition at line 244 of file syssolver_linop_OPTeigbicg.cc.

References Chroma::LinOpSysSolverOptEigBiCG< T >::A, Chroma::LinOpSysSolverOptEigBiCG< T >::invParam, LinOp, and Chroma::sysSolver().

template<>
SystemSolverResults_t Chroma::LinOpSysSolverOptEigBiCG< LatticeStaggeredFermionF >::operator() ( LatticeStaggeredFermionF &  psi,
const LatticeStaggeredFermionF &  chi 
) const

Definition at line 236 of file syssolver_linop_OPTeigbicg.cc.

References Chroma::LinOpSysSolverOptEigBiCG< T >::A, Chroma::LinOpSysSolverOptEigBiCG< T >::invParam, LinOp, and Chroma::sysSolver().

template<>
SystemSolverResults_t Chroma::LinOpSysSolverOptEigBiCG< LatticeFermionD >::operator() ( LatticeFermionD &  psi,
const LatticeFermionD &  chi 
) const

Definition at line 224 of file syssolver_linop_OPTeigbicg.cc.

References Chroma::LinOpSysSolverOptEigBiCG< T >::A, Chroma::LinOpSysSolverOptEigBiCG< T >::invParam, LinOp, and Chroma::sysSolver().

template<>
SystemSolverResults_t Chroma::LinOpSysSolverOptEigBiCG< LatticeFermionF >::operator() ( LatticeFermionF &  psi,
const LatticeFermionF &  chi 
) const

Definition at line 216 of file syssolver_linop_OPTeigbicg.cc.

References Chroma::LinOpSysSolverOptEigBiCG< T >::A, Chroma::LinOpSysSolverOptEigBiCG< T >::invParam, LinOp, and Chroma::sysSolver().

template<typename T>
SystemSolverResults_t Chroma::LinOpSysSolverOptEigBiCG< T >::operator() ( T psi,
const T chi,
AbsChronologicalPredictor4D< T > &  predictor 
) const [inline]

Solve the linear system starting with a chrono guess.

Parameters:
psi solution (Write)
chi source (Read)
predictor a chronological predictor (Read)
Returns:
syssolver results

Definition at line 249 of file syssolver_linop_OPTeigbicg.h.

References Chroma::LinOpSysSolverOptEigBiCG< T >::A, END_CODE, Chroma::AbsChronologicalPredictor4D< T >::newVector(), and START_CODE.

template<typename T>
SystemSolverResults_t Chroma::LinOpSysSolverOptEigBiCG< T >::operator() ( T psi,
const T chi 
) const [virtual]

Solver the linear system.

Parameters:
psi solution ( Modify )
chi source ( Read )
Returns:
syssolver results
Definitions supplied in the correspond .cc file

Implements Chroma::SystemSolver< T >.

template<typename T>
void Chroma::LinOpSysSolverOptEigBiCG< T >::QIOReadOptEvecs (  )  [inline]

Read a OptEigInfo Type.

Definition at line 110 of file syssolver_linop_OPTeigbicg.h.

References Chroma::LinAlg::OptEigInfo::CvToEigCGvec(), Chroma::SysSolverOptEigBiCGParams::eigen_id, Chroma::LinAlg::OptEigInfo::evals, Chroma::SysSolverOptEigBiCGParams::file, Chroma::SysSolverOptEigBiCGParams::File_t::file_name, Chroma::LinAlg::OptEigInfo::H, Chroma::SingletonHolder< T, CreationPolicy, LifetimePolicy, ThreadingModel >::Instance(), Chroma::LinOpSysSolverOptEigBiCG< T >::invParam, Chroma::LinAlg::OptEigInfo::ncurEvals, Chroma::read(), and Chroma::LinOpSysSolverOptEigBiCG< T >::subset().

Referenced by Chroma::LinOpSysSolverOptEigBiCG< T >::LinOpSysSolverOptEigBiCG().

template<typename T>
void Chroma::LinOpSysSolverOptEigBiCG< T >::QIOWriteOptEvecs (  )  [inline]

Write out an OptEigInfo Type.

Definition at line 42 of file syssolver_linop_OPTeigbicg.h.

References Chroma::LinAlg::OptEigInfo::CvToLatFerm(), Chroma::SysSolverOptEigBiCGParams::eigen_id, Chroma::LinAlg::OptEigInfo::evals, Chroma::SysSolverOptEigBiCGParams::file, Chroma::SysSolverOptEigBiCGParams::File_t::file_name, Chroma::SysSolverOptEigBiCGParams::File_t::file_volfmt, Chroma::LinAlg::OptEigInfo::H, Chroma::SingletonHolder< T, CreationPolicy, LifetimePolicy, ThreadingModel >::Instance(), Chroma::LinOpSysSolverOptEigBiCG< T >::invParam, Chroma::LinAlg::OptEigInfo::lde, Chroma::LinAlg::OptEigInfo::N, Chroma::LinAlg::OptEigInfo::ncurEvals, Chroma::LinAlg::OptEigInfo::restartTol, Chroma::LinOpSysSolverOptEigBiCG< T >::subset(), Chroma::uniqueId(), and Chroma::write().

Referenced by Chroma::LinOpSysSolverOptEigBiCG< T >::~LinOpSysSolverOptEigBiCG().

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

Return the subset on which the operator acts.

Implements Chroma::SystemSolver< T >.

Definition at line 228 of file syssolver_linop_OPTeigbicg.h.

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

Referenced by Chroma::LinOpSysSolverOptEigBiCG< T >::QIOReadOptEvecs(), and Chroma::LinOpSysSolverOptEigBiCG< T >::QIOWriteOptEvecs().


Member Data Documentation

template<typename T>
Handle< LinearOperator<T> > Chroma::LinOpSysSolverOptEigBiCG< T >::A [private]

Definition at line 274 of file syssolver_linop_OPTeigbicg.h.

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

template<typename T>
SysSolverOptEigBiCGParams Chroma::LinOpSysSolverOptEigBiCG< T >::invParam [private]

Definition at line 275 of file syssolver_linop_OPTeigbicg.h.

Referenced by Chroma::LinOpSysSolverOptEigBiCG< T >::LinOpSysSolverOptEigBiCG(), Chroma::LinOpSysSolverOptEigBiCG< T >::operator()(), Chroma::LinOpSysSolverOptEigBiCG< T >::QIOReadOptEvecs(), Chroma::LinOpSysSolverOptEigBiCG< T >::QIOWriteOptEvecs(), and Chroma::LinOpSysSolverOptEigBiCG< T >::~LinOpSysSolverOptEigBiCG().

template<typename T>
int Chroma::LinOpSysSolverOptEigBiCG< T >::numMatvecs [private]

Definition at line 273 of file syssolver_linop_OPTeigbicg.h.

Referenced by Chroma::LinOpSysSolverOptEigBiCG< T >::LinOpSysSolverOptEigBiCG().


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