xc
Public Member Functions | Public Attributes | List of all members
XC::ArpackAuxVars Struct Reference

Auxiliary variables for calling Arpack functions. More...

#include <BandArpackSolver.h>

Collaboration diagram for XC::ArpackAuxVars:
Collaboration graph
[legend]

Public Member Functions

 ArpackAuxVars (int n, int ncv, int nev, int maxitr, int mode)
 Constructor. More...
 
int dsaupd (int &ido, const int &n, const std::string &which, const int &nev, const double &tol, const int &ncv, int &info)
 Reverse communication interface for the Implicitly Restarted Arnoldi Iteration. More...
 

Public Attributes

int ldv
 
int lworkl
 at least NCV**2+8*NCV
 
std::vector< double > v
 Lanczos basis vectors.
 
std::vector< double > workl
 Private (replicated) array of each PE or array allocated on the front end.
 
std::vector< double > workd
 Reverse communication.
 
Vector d
 
Vector z
 
std::vector< double > resid
 residual vector.
 
int iparam [11]
 Method for selecting the implicit shifts.
 
int ipntr [11]
 Pointer to mark the starter location in the workd and workl arrays for matrices/vectors used by the Lanczos iteration.
 
std::vector< long int > select
 
const char bmat = 'G'
 'G': generalized eigenvalue problem A*x= lambda*B*x
 
const char howmy = 'A'
 

Detailed Description

Auxiliary variables for calling Arpack functions.

Constructor & Destructor Documentation

◆ ArpackAuxVars()

XC::ArpackAuxVars::ArpackAuxVars ( int  n,
int  ncv,
int  nev,
int  maxitr,
int  mode 
)

Constructor.

Parameters
ndimension of the eigenproblem
ncvnumber of columns of the matrix v (<=n) t. This will indicate how many Lanczos vectors are generated at each iteration (see Arpack manual).
nevnumber of eigenvalues to be computed.
maxitrmaximum number of iterations.
modetype of eigenproblem to be solved (see dsaupd description in Arpack manual).

Member Function Documentation

◆ dsaupd()

int XC::ArpackAuxVars::dsaupd ( int &  ido,
const int &  n,
const std::string &  which,
const int &  nev,
const double &  tol,
const int &  ncv,
int &  info 
)

Reverse communication interface for the Implicitly Restarted Arnoldi Iteration.

Parameters
idoReverse communication flag
ndimension of the eigenproblem
nevnumber of eigenvalues to be computed.
tolStopping criterion: the relative accuracy of the Ritz value is considered acceptable if BOUNDS(I)<=TOL*ABS(RITZ(I)). If tol<0. is passed a default is set:
ncvnumber of columns of the matrix v (<=n) t. This will ndicate how many Lanczos vectors are generated at each iteration (see Arpack manual).
infoOn input: see Arpack manual. On output: error flag (if any).

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