QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
quda::DeflationParam Struct Reference

#include <deflation.h>

Collaboration diagram for quda::DeflationParam:
Collaboration graph
[legend]

Public Member Functions

 DeflationParam (QudaEigParam &param, ColorSpinorField *RV, DiracMatrix &matDeflation, int cur_dim=0)
 
 ~DeflationParam ()
 

Public Attributes

QudaEigParameig_global
 
ColorSpinorFieldRV
 
double * invRitzVals
 
DiracMatrixmatDeflation
 
ComplexmatProj
 
int ld
 
int tot_dim
 
int cur_dim
 
bool use_inv_ritz
 
QudaFieldLocation location
 
char filename [100]
 

Detailed Description

This struct contains all the metadata required to define the deflated solvers.

Definition at line 13 of file deflation.h.

Constructor & Destructor Documentation

◆ DeflationParam()

quda::DeflationParam::DeflationParam ( QudaEigParam param,
ColorSpinorField RV,
DiracMatrix matDeflation,
int  cur_dim = 0 
)
inline

Definition at line 51 of file deflation.h.

References errorQuda, quda::ColorSpinorField::IsComposite(), QudaEigParam_s::nk, QudaEigParam_s::np, and tot_dim.

Here is the call graph for this function:

◆ ~DeflationParam()

quda::DeflationParam::~DeflationParam ( )
inline

Definition at line 68 of file deflation.h.

References invRitzVals, and matProj.

Member Data Documentation

◆ cur_dim

int quda::DeflationParam::cur_dim

current dimension (must match rhs_idx: if(rhs_idx < deflation_grid) curr_nevs <= nev * rhs_idx)

Definition at line 40 of file deflation.h.

Referenced by quda::Deflation::increment(), quda::Deflation::is_complete(), quda::Deflation::operator()(), quda::Deflation::reduce(), quda::Deflation::size(), and quda::Deflation::verify().

◆ eig_global

QudaEigParam& quda::DeflationParam::eig_global

This points to the parameter struct that is passed into QUDA. We use this to set (per-level) parameters

Definition at line 17 of file deflation.h.

Referenced by quda::Deflation::Deflation(), quda::Deflation::increment(), quda::Deflation::loadVectors(), quda::Deflation::operator()(), quda::Deflation::reduce(), quda::Deflation::saveVectors(), quda::Deflation::verify(), and quda::Deflation::~Deflation().

◆ filename

char quda::DeflationParam::filename[100]

Filename for where to load/store the deflation space

Definition at line 49 of file deflation.h.

◆ invRitzVals

double* quda::DeflationParam::invRitzVals

Inverse Ritz values

Definition at line 25 of file deflation.h.

Referenced by quda::Deflation::operator()(), quda::Deflation::reduce(), and ~DeflationParam().

◆ ld

int quda::DeflationParam::ld

projection matrix leading dimension

Definition at line 34 of file deflation.h.

Referenced by quda::Deflation::increment(), quda::Deflation::operator()(), quda::Deflation::reduce(), and quda::Deflation::verify().

◆ location

QudaFieldLocation quda::DeflationParam::location

Where to compute Ritz vectors

Definition at line 46 of file deflation.h.

Referenced by quda::Deflation::Deflation().

◆ matDeflation

DiracMatrix& quda::DeflationParam::matDeflation

The Dirac operator to use for spinor deflation operation

Definition at line 28 of file deflation.h.

Referenced by quda::Deflation::increment(), quda::Deflation::reduce(), and quda::Deflation::verify().

◆ matProj

Complex* quda::DeflationParam::matProj

Host projection matrix (e.g. eigCG VH A V)

Definition at line 31 of file deflation.h.

Referenced by quda::Deflation::increment(), quda::Deflation::operator()(), quda::Deflation::reduce(), quda::Deflation::verify(), and ~DeflationParam().

◆ RV

ColorSpinorField* quda::DeflationParam::RV

Buffer for Ritz vectors For staggered: we need to reduce dimensionality of each component?

Definition at line 22 of file deflation.h.

Referenced by quda::Deflation::Deflation(), quda::Deflation::increment(), quda::Deflation::operator()(), quda::Deflation::reduce(), quda::Deflation::verify(), and quda::deflated_solver::~deflated_solver().

◆ tot_dim

int quda::DeflationParam::tot_dim

projection matrix full (maximum) dimension (nev*deflation_grid)

Definition at line 37 of file deflation.h.

Referenced by quda::Deflation::Deflation(), DeflationParam(), quda::Deflation::increment(), quda::Deflation::is_complete(), and quda::Deflation::reduce().

◆ use_inv_ritz

bool quda::DeflationParam::use_inv_ritz

use inverse Ritz values for deflation (for the best performance)

Definition at line 43 of file deflation.h.

Referenced by quda::Deflation::operator()(), and quda::Deflation::reduce().


The documentation for this struct was generated from the following file: