Classes | Functions
include/deal.II/lac/arpack_solver.h File Reference
Include dependency graph for arpack_solver.h:

Classes

class  ArpackSolver
struct  ArpackSolver::AdditionalData

Functions

DEAL_II_NAMESPACE_OPEN void dnaupd_ (int *ido, char *bmat, const unsigned int *n, char *which, const unsigned int *nev, const double *tol, double *resid, int *ncv, double *v, int *ldv, int *iparam, int *ipntr, double *workd, double *workl, int *lworkl, int *info)
void dneupd_ (int *rvec, char *howmany, int *select, double *d, double *di, double *z, int *ldz, double *sigmar, double *sigmai, double *workev, char *bmat, const unsigned int *n, char *which, const unsigned int *nev, const double *tol, double *resid, int *ncv, double *v, int *ldv, int *iparam, int *ipntr, double *workd, double *workl, int *lworkl, int *info)

Function Documentation

DEAL_II_NAMESPACE_OPEN void dnaupd_ ( int *  ido,
char *  bmat,
const unsigned int *  n,
char *  which,
const unsigned int *  nev,
const double *  tol,
double *  resid,
int *  ncv,
double *  v,
int *  ldv,
int *  iparam,
int *  ipntr,
double *  workd,
double *  workl,
int *  lworkl,
int *  info 
)

Interface for using ARPACK. ARPACK is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems. Here we interface to the routines dnaupd and dneupd of ARPACK. The package is designed to compute a few eigenvalues and corresponding eigenvectors of a general n by n matrix A. It is most appropriate for large sparse matrices A.

In this class we make use of the method applied to the generalized eigenspectrum problem $(A-\lambda B)x=0$, for $x\neq0$; where $A$ is a system matrix, $B$ is a mass matrix, and $\lambda, x$ are a set of eigenvalues and eigenvectors respectively.

The ArpackSolver can be used in application codes in the following way:

  SolverControl solver_control (1000, 1e-9);
  ArpackSolver (solver_control);
  system.solve (A, B, lambda, x, size_of_spectrum);
 

for the generalized eigenvalue problem $Ax=B\lambda x$, where the variable const unsigned int size_of_spectrum tells ARPACK the number of eigenvector/eigenvalue pairs to solve for.

Through the AdditionalData the user can specify some of the parameters to be set.

For further information on how the ARPACK routines dnaupd and dneupd work and also how to set the parameters appropriately please take a look into the ARPACK manual.

Author:
Bärbel Janssen, Agnieszka Miedlar, 2010.

Referenced by ArpackSolver::solve().

void dneupd_ ( int *  rvec,
char *  howmany,
int *  select,
double *  d,
double *  di,
double *  z,
int *  ldz,
double *  sigmar,
double *  sigmai,
double *  workev,
char *  bmat,
const unsigned int *  n,
char *  which,
const unsigned int *  nev,
const double *  tol,
double *  resid,
int *  ncv,
double *  v,
int *  ldv,
int *  iparam,
int *  ipntr,
double *  workd,
double *  workl,
int *  lworkl,
int *  info 
)

Referenced by ArpackSolver::solve().


deal.II documentation generated on Fri Aug 12 2011 15:00:21 by doxygen 1.7.4