Classes | Public Types | Public Member Functions | Protected Attributes | Static Private Member Functions
ArpackSolver Class Reference
Inheritance diagram for ArpackSolver:
Inheritance graph
[legend]

List of all members.

Classes

struct  AdditionalData

Public Types

enum  WhichEigenvalues {
  algebraically_largest, algebraically_smallest, largest_magnitude, smallest_magnitude,
  largest_real_part, smallest_real_part, largest_imaginary_part, smallest_imaginary_part,
  both_ends
}

Public Member Functions

SolverControl & control () const
 ArpackSolver (SolverControl &control, const AdditionalData &data=AdditionalData())
template<typename VECTOR , typename MATRIX1 , typename MATRIX2 , typename INVERSE >
void solve (const MATRIX1 &A, const MATRIX2 &B, const INVERSE &inverse, std::vector< std::complex< double > > &eigenvalues, std::vector< VECTOR > &eigenvectors, const unsigned int n_eigenvalues)

Protected Attributes

SolverControl & solver_control
const AdditionalData additional_data

Static Private Member Functions

::ExceptionBase & ExcInvalidNumberofEigenvalues (int arg1, int arg2) throw (errortext << "Number of wanted eigenvalues " << arg1 << " is larger that the size of the matrix " << arg2 )
::ExceptionBase & ExcInvalidNumberofArnoldiVectors (int arg1, int arg2) throw (errortext << "Number of Arnoldi vectors " << arg1 << " is larger that the size of the matrix " << arg2 )
::ExceptionBase & ExcSmallNumberofArnoldiVectors (int arg1, int arg2) throw (errortext << "Number of Arnoldi vectors " << arg1 << " is too small to obtain " << arg2 << " eigenvalues" )
::ExceptionBase & ExcArpackIdo (int arg1) throw (errortext << "This ido " << arg1 << " is not supported. Check documentation of ARPACK" )
::ExceptionBase & ExcArpackMode (int arg1) throw (errortext << "This mode " << arg1 << " is not supported. Check documentation of ARPACK" )
::ExceptionBase & ExcArpackInfodsaupd (int arg1) throw (errortext << "Error with dsaupd, info " << arg1 << ". Check documentation of ARPACK" )
::ExceptionBase & ExcArpackInfodneupd (int arg1) throw (errortext << "Error with dneupd, info " << arg1 << ". Check documentation of ARPACK" )
::ExceptionBase & ExcArpackInfoMaxIt (int arg1) throw (errortext << "Maximum number " << arg1 << " of iterations reached." )
::ExceptionBase & ExcArpackNoShifts (int arg1) throw (errortext << "No shifts could be applied during implicit" << " Arnoldi update, try increasing the number of" << " Arnoldi vectors." )

Detailed Description

Class to interface with the ARPACK routines.


Member Enumeration Documentation

An enum that lists the possible choices for which eigenvalues to compute in the solve() function.

Enumerator:
algebraically_largest 
algebraically_smallest 
largest_magnitude 
smallest_magnitude 
largest_real_part 
smallest_real_part 
largest_imaginary_part 
smallest_imaginary_part 
both_ends 

Constructor & Destructor Documentation

ArpackSolver::ArpackSolver ( SolverControl &  control,
const AdditionalData &  data = AdditionalData() 
)

Constructor.


Member Function Documentation

SolverControl & ArpackSolver::control ( ) const

Access to the object that controls convergence.

References solver_control.

Referenced by solve().

template<typename VECTOR , typename MATRIX1 , typename MATRIX2 , typename INVERSE >
void ArpackSolver::solve ( const MATRIX1 &  A,
const MATRIX2 &  B,
const INVERSE &  inverse,
std::vector< std::complex< double > > &  eigenvalues,
std::vector< VECTOR > &  eigenvectors,
const unsigned int  n_eigenvalues 
)

Solve the generalized eigensprectrum problem $A x=\lambda B x$ by calling dneupd and dnaupd of ARPACK.

'G' generalized eigenvalue problem 'I' standard eigenvalue problem

Specify the eigenvalues of interest, possible parameters "LA" algebraically largest "SA" algebraically smallest "LM" largest magnitude "SM" smallest magnitude "LR" largest real part "SR" smallest real part "LI" largest imaginary part "SI" smallest imaginary part "BE" both ends of spectrum simultaneous

Sets the mode of dsaupd. 1 is exact shifting, 2 is user-supplied shifts, 3 is shift-invert mode, 4 is buckling mode, 5 is Cayley mode.

1 - compute eigenvectors, 0 - only eigenvalues

References additional_data, algebraically_largest, algebraically_smallest, Assert, AssertDimension, both_ends, control(), dnaupd_(), dneupd_(), ArpackSolver::AdditionalData::eigenvalue_of_interest, LAPACKSupport::eigenvalues, ExcArpackIdo(), ExcArpackInfodneupd(), ExcArpackInfodsaupd(), ExcArpackInfoMaxIt(), ExcArpackMode(), ExcArpackNoShifts(), ExcInvalidNumberofArnoldiVectors(), ExcInvalidNumberofEigenvalues(), ExcSmallNumberofArnoldiVectors(), largest_imaginary_part, largest_magnitude, largest_real_part, SolverControl::max_steps(), ArpackSolver::AdditionalData::number_of_arnoldi_vectors, smallest_imaginary_part, smallest_magnitude, smallest_real_part, and SolverControl::tolerance().

::ExceptionBase& ArpackSolver::ExcInvalidNumberofEigenvalues ( int  arg1,
int  arg2 
) throw (errortext << "Number of wanted eigenvalues " << arg1 << " is larger that the size of the matrix " << arg2 ) [static, private]

Exceptions.

Referenced by solve().

::ExceptionBase& ArpackSolver::ExcInvalidNumberofArnoldiVectors ( int  arg1,
int  arg2 
) throw (errortext << "Number of Arnoldi vectors " << arg1 << " is larger that the size of the matrix " << arg2 ) [static, private]

Referenced by solve().

::ExceptionBase& ArpackSolver::ExcSmallNumberofArnoldiVectors ( int  arg1,
int  arg2 
) throw (errortext << "Number of Arnoldi vectors " << arg1 << " is too small to obtain " << arg2 << " eigenvalues" ) [static, private]

Referenced by solve().

::ExceptionBase& ArpackSolver::ExcArpackIdo ( int  arg1) throw (errortext << "This ido " << arg1 << " is not supported. Check documentation of ARPACK" ) [static, private]

Referenced by solve().

::ExceptionBase& ArpackSolver::ExcArpackMode ( int  arg1) throw (errortext << "This mode " << arg1 << " is not supported. Check documentation of ARPACK" ) [static, private]

Referenced by solve().

::ExceptionBase& ArpackSolver::ExcArpackInfodsaupd ( int  arg1) throw (errortext << "Error with dsaupd, info " << arg1 << ". Check documentation of ARPACK" ) [static, private]

Referenced by solve().

::ExceptionBase& ArpackSolver::ExcArpackInfodneupd ( int  arg1) throw (errortext << "Error with dneupd, info " << arg1 << ". Check documentation of ARPACK" ) [static, private]

Referenced by solve().

::ExceptionBase& ArpackSolver::ExcArpackInfoMaxIt ( int  arg1) throw (errortext << "Maximum number " << arg1 << " of iterations reached." ) [static, private]

Referenced by solve().

::ExceptionBase& ArpackSolver::ExcArpackNoShifts ( int  arg1) throw (errortext << "No shifts could be applied during implicit" << " Arnoldi update, try increasing the number of" << " Arnoldi vectors." ) [static, private]

Referenced by solve().


Member Data Documentation

Reference to the object that controls convergence of the iterative solver.

Referenced by control().

Store a copy of the flags for this particular solver.

Referenced by solve().


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

deal.II documentation generated on Fri Aug 12 2011 15:01:02 by doxygen 1.7.4