#include <AnasaziBasicSort.hpp>
Inheritance diagram for Anasazi::BasicSort< ScalarType, MV, OP >:

Public Member Functions | |
| BasicSort (const std::string which="LM") | |
| Constructor. | |
| virtual | ~BasicSort () |
| Destructor. | |
| void | setSortType (const std::string which) |
| Set sort type. | |
| void | sort (Eigensolver< ScalarType, MV, OP > *solver, const int n, std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &evals, std::vector< int > *perm=0) const |
| Sort the vector of eigenvalues, optionally returning the permutation vector. | |
| void | sort (Eigensolver< ScalarType, MV, OP > *solver, const int n, std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &r_evals, std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &i_evals, std::vector< int > *perm=0) const |
| Sort the vectors of eigenpairs, optionally returning the permutation vector. | |
Protected Attributes | |
| std::string | which_ |
| Sorting type. | |
Definition at line 51 of file AnasaziBasicSort.hpp.
| Anasazi::BasicSort< ScalarType, MV, OP >::BasicSort | ( | const std::string | which = "LM" |
) | [inline] |
Constructor.
| which | [in] The eigenvalues of interest for this eigenproblem.
|
Definition at line 67 of file AnasaziBasicSort.hpp.
| virtual Anasazi::BasicSort< ScalarType, MV, OP >::~BasicSort | ( | ) | [inline, virtual] |
| void Anasazi::BasicSort< ScalarType, MV, OP >::setSortType | ( | const std::string | which | ) | [inline] |
Set sort type.
| which | [in] The eigenvalues of interest for this eigenproblem.
|
Definition at line 86 of file AnasaziBasicSort.hpp.
| void Anasazi::BasicSort< ScalarType, MV, OP >::sort | ( | Eigensolver< ScalarType, MV, OP > * | solver, | |
| const int | n, | |||
| std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > & | evals, | |||
| std::vector< int > * | perm = 0 | |||
| ) | const [virtual] |
Sort the vector of eigenvalues, optionally returning the permutation vector.
| solver | [in] Eigensolver that is calling the sorting routine | |
| n | [in] Number of values in evals to be sorted. | |
| evals | [in/out] Vector of length n containing the eigenvalues to be sorted | |
| perm | [out] Vector of length n to store the permutation index (optional) |
Implements Anasazi::SortManager< ScalarType, MV, OP >.
Definition at line 146 of file AnasaziBasicSort.hpp.
| void Anasazi::BasicSort< ScalarType, MV, OP >::sort | ( | Eigensolver< ScalarType, MV, OP > * | solver, | |
| const int | n, | |||
| std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > & | r_evals, | |||
| std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > & | i_evals, | |||
| std::vector< int > * | perm = 0 | |||
| ) | const [virtual] |
Sort the vectors of eigenpairs, optionally returning the permutation vector.
This routine takes two vectors, one for each part of a complex eigenvalue. This is helpful for solving real, non-symmetric eigenvalue problems.
| solver | [in] Eigensolver that is calling the sorting routine | |
| n | [in] Number of values in r_evals,i_evals to be sorted. | |
| r_evals | [in/out] Vector of length n containing the real part of the eigenvalues to be sorted | |
| i_evals | [in/out] Vector of length n containing the imaginary part of the eigenvalues to be sorted | |
| perm | [out] Vector of length n to store the permutation index (optional) |
Implements Anasazi::SortManager< ScalarType, MV, OP >.
Definition at line 292 of file AnasaziBasicSort.hpp.
std::string Anasazi::BasicSort< ScalarType, MV, OP >::which_ [protected] |
Sorting type.
Definition at line 141 of file AnasaziBasicSort.hpp.
1.4.7