#include <AnasaziBlockKrylovSchur.hpp>
Inheritance diagram for Anasazi::BlockKrylovSchur< ScalarType, MV, OP >:

Public Member Functions | |
Constructor/Destructor | |
| BlockKrylovSchur (const Teuchos::RefCountPtr< Eigenproblem< ScalarType, MV, OP > > &problem, const Teuchos::RefCountPtr< SortManager< ScalarType, MV, OP > > &sorter, const Teuchos::RefCountPtr< OutputManager< ScalarType > > &printer, const Teuchos::RefCountPtr< StatusTest< ScalarType, MV, OP > > &tester, const Teuchos::RefCountPtr< OrthoManager< ScalarType, MV > > &ortho, Teuchos::ParameterList ¶ms) | |
| BlockKrylovSchur constructor with eigenproblem, solver utilities, and parameter list of solver options. | |
| virtual | ~BlockKrylovSchur () |
| BlockKrylovSchur destructor. | |
Solver methods | |
| void | iterate () |
| This method performs Block Krylov-Schur iterations until the status test indicates the need to stop or an error occurs (in which case, an exception is thrown). | |
| void | initialize (BlockKrylovSchurState< ScalarType, MV > state) |
| Initialize the solver to an iterate, providing a Krylov basis and Hessenberg matrix. | |
| void | initialize () |
| Initialize the solver with the initial vectors from the eigenproblem or random data. | |
| bool | isInitialized () |
| Indicates whether the solver has been initialized or not. | |
| BlockKrylovSchurState< ScalarType, MV > | getState () const |
| Get the current state of the eigensolver. | |
Status methods | |
| int | getNumIters () const |
| Get the current iteration count. | |
| void | resetNumIters () |
| Reset the iteration count. | |
| Teuchos::RefCountPtr< const MV > | getRitzVectors () |
| Get the Ritz vectors. | |
| std::vector< Value< ScalarType > > | getRitzValues () |
| Get the Ritz values. | |
| std::vector< int > | getRitzIndex () |
| Get the Ritz index vector. | |
| std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > | getResNorms () |
| Get the current residual norms. | |
| std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > | getRes2Norms () |
| Get the current residual 2-norms. | |
| std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > | getRitzRes2Norms () |
| Get the current Ritz residual 2-norms. | |
Accessor routines | |
| const Eigenproblem< ScalarType, MV, OP > & | getProblem () const |
| Get a constant reference to the eigenvalue problem. | |
| void | setSize (int blockSize, int numBlocks) |
| Set the blocksize and number of blocks to be used by the iterative solver in solving this eigenproblem. | |
| void | setBlockSize (int blockSize) |
| Set the blocksize. | |
| void | setStepSize (int stepSize) |
| Set the step size. | |
| void | setNumRitzVectors (int numRitzVecs) |
| Set the number of Ritz vectors to compute. | |
| int | getStepSize () const |
| Get the step size. | |
| int | getBlockSize () const |
| Get the blocksize to be used by the iterative solver in solving this eigenproblem. | |
| int | getNumRitzVectors () const |
| Get the number of Ritz vectors to compute. | |
| int | getCurSubspaceDim () const |
| Get the dimension of the search subspace used to generate the current eigenvectors and eigenvalues. | |
| int | getMaxSubspaceDim () const |
| Get the maximum dimension allocated for the search subspace. | |
| void | setAuxVecs (const Teuchos::Array< Teuchos::RefCountPtr< const MV > > &auxvecs) |
| Set the auxiliary vectors for the solver. | |
| Teuchos::Array< Teuchos::RefCountPtr< const MV > > | getAuxVecs () const |
| Get the auxiliary vectors for the solver. | |
Output methods | |
| void | currentStatus (ostream &os) |
| This method requests that the solver print out its current status to screen. | |
Block-Krylov Schur status routines | |
| bool | isRitzVecsCurrent () const |
| Get the status of the Ritz vectors currently stored in the eigensolver. | |
| bool | isRitzValsCurrent () const |
| Get the status of the Ritz values currently stored in the eigensolver. | |
| bool | isSchurCurrent () const |
| Get the status of the Schur form currently stored in the eigensolver. | |
Block-Krylov Schur compute routines | |
| void | computeRitzVectors () |
| Compute the Ritz vectors using the current Krylov factorization. | |
| void | computeRitzValues () |
| Compute the Ritz values using the current Krylov factorization. | |
| void | computeSchurForm (const bool sort=true) |
| Compute the Schur form of the projected eigenproblem from the current Krylov factorization. | |
This method is a block version of the iteration presented by G.W. Stewart in "A Krylov-Schur Algorithm for Large Eigenproblems", SIAM J. Matrix Anal. Appl., Vol 23(2001), No. 3, pp. 601-614.
Definition at line 140 of file AnasaziBlockKrylovSchur.hpp.
|
||||||||||||||||||||||||||||||||
|
BlockKrylovSchur constructor with eigenproblem, solver utilities, and parameter list of solver options. This constructor takes pointers required by the eigensolver, in addition to a parameter list of options for the eigensolver. These options include the following:
Definition at line 721 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
BlockKrylovSchur destructor.
Definition at line 165 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
This method performs Block Krylov-Schur iterations until the status test indicates the need to stop or an error occurs (in which case, an exception is thrown). iterate() will first determine whether the solver is inintialized; if not, it will call initialize() using default arguments. After initialization, the solver performs Block Krylov-Schur iterations until the status test evaluates as Passed, at which point the method returns to the caller. The Block Krylov-Schur iteration proceeds as follows:
The status test is queried at the beginning of the iteration. Possible exceptions thrown include the BlockKrylovSchurOrthoFailure. Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 1090 of file AnasaziBlockKrylovSchur.hpp. |
|
||||||||||
|
Initialize the solver to an iterate, providing a Krylov basis and Hessenberg matrix. The BlockKrylovSchur eigensolver contains a certain amount of state, consisting of the current Krylov basis and the associated Hessenberg matrix. initialize() gives the user the opportunity to manually set these, although this must be done with caution, abiding by the rules given below. All notions of orthogonality and orthonormality are derived from the inner product specified by the orthogonalization manager.
Definition at line 920 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Initialize the solver with the initial vectors from the eigenproblem or random data.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 1080 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Indicates whether the solver has been initialized or not.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 225 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the current state of the eigensolver.
The data is only valid if isInitialized() ==
Definition at line 234 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the current iteration count.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 251 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Reset the iteration count.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 254 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the Ritz vectors.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 263 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the Ritz values.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 272 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the Ritz index vector.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 283 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the current residual norms.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 289 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the current residual 2-norms.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 298 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the current Ritz residual 2-norms.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 307 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get a constant reference to the eigenvalue problem.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 319 of file AnasaziBlockKrylovSchur.hpp. |
|
||||||||||||||||
|
Set the blocksize and number of blocks to be used by the iterative solver in solving this eigenproblem. Changing either the block size or the number of blocks will reset the solver to an uninitialized state. Definition at line 834 of file AnasaziBlockKrylovSchur.hpp. |
|
||||||||||
|
Set the blocksize.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 794 of file AnasaziBlockKrylovSchur.hpp. |
|
||||||||||
|
Set the step size.
Definition at line 803 of file AnasaziBlockKrylovSchur.hpp. |
|
||||||||||
|
Set the number of Ritz vectors to compute.
Definition at line 812 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the step size.
Definition at line 339 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the blocksize to be used by the iterative solver in solving this eigenproblem.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 342 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the number of Ritz vectors to compute.
Definition at line 345 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the dimension of the search subspace used to generate the current eigenvectors and eigenvalues.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 352 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the maximum dimension allocated for the search subspace.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 358 of file AnasaziBlockKrylovSchur.hpp. |
|
||||||||||
|
Set the auxiliary vectors for the solver. Because the current Krylov subspace cannot be assumed orthogonal to the new auxiliary vectors, a call to setAuxVecs() will reset the solver to the uninitialized state. This happens only in the case where the new auxiliary vectors have a combined dimension of greater than zero. In order to preserve the current state, the user will need to extract it from the solver using getState(), orthogonalize it against the new auxiliary vectors, and reinitialize using initialize(). Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 886 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the auxiliary vectors for the solver.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 376 of file AnasaziBlockKrylovSchur.hpp. |
|
||||||||||
|
This method requests that the solver print out its current status to screen.
Implements Anasazi::Eigensolver< ScalarType, MV, OP >. Definition at line 1761 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the status of the Ritz vectors currently stored in the eigensolver.
Definition at line 392 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the status of the Ritz values currently stored in the eigensolver.
Definition at line 395 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Get the status of the Schur form currently stored in the eigensolver.
Definition at line 398 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Compute the Ritz vectors using the current Krylov factorization.
Definition at line 1355 of file AnasaziBlockKrylovSchur.hpp. |
|
|||||||||
|
Compute the Ritz values using the current Krylov factorization.
Definition at line 1327 of file AnasaziBlockKrylovSchur.hpp. |
|
||||||||||
|
Compute the Schur form of the projected eigenproblem from the current Krylov factorization.
Definition at line 1502 of file AnasaziBlockKrylovSchur.hpp. |
1.3.9.1