#include <Anasazi_LOCA_Sort.H>
Public Member Functions | |
| LOCASort (const Teuchos::RCP< LOCA::GlobalData > &global_data, const Teuchos::RCP< LOCA::EigenvalueSort::AbstractStrategy > &strategy_) | |
| Constructor. | |
| virtual | ~LOCASort () |
| Destructor. | |
| virtual void | sort (std::vector< double > &evals, Teuchos::RCP< std::vector< int > > perm=Teuchos::null, int n=-1) const |
| Sort the vector of eigenvalues with respect to the chosen sorting type, optionally returning the permutation vector. | |
| virtual void | sort (std::vector< double > &r_evals, std::vector< double > &i_evals, Teuchos::RCP< std::vector< int > > perm=Teuchos::null, int n=-1) const |
| Sort the vectors of eigenpairs with respect to the chosen sorting type, optionally returning the permutation vector. | |
Protected Attributes | |
| Teuchos::RCP< LOCA::GlobalData > | globalData |
| Global data. | |
| Teuchos::RCP < LOCA::EigenvalueSort::AbstractStrategy > | strategy |
| EigenvalueSort strategy. | |
Private Types | |
| typedef NOX::Abstract::MultiVector | MV |
| Anasazi::Multivec typedef. | |
| typedef LOCA::AnasaziOperator::AbstractStrategy | OP |
| Anasazi::Operator typedef. | |
Definition at line 70 of file Anasazi_LOCA_Sort.H.
typedef NOX::Abstract::MultiVector Anasazi::LOCASort::MV [private] |
typedef LOCA::AnasaziOperator::AbstractStrategy Anasazi::LOCASort::OP [private] |
| Anasazi::LOCASort::LOCASort | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, | |
| const Teuchos::RCP< LOCA::EigenvalueSort::AbstractStrategy > & | strategy_ | |||
| ) |
Constructor.
| global_data | [in] Global data object | |
| strategy_ | [in] Ref-count ptr to LOCA sorting strategy |
Definition at line 47 of file Anasazi_LOCA_Sort.C.
| Anasazi::LOCASort::~LOCASort | ( | ) | [virtual] |
| void Anasazi::LOCASort::sort | ( | std::vector< double > & | evals, | |
| Teuchos::RCP< std::vector< int > > | perm = Teuchos::null, |
|||
| int | n = -1 | |||
| ) | const [virtual] |
Sort the vector of eigenvalues with respect to the chosen sorting type, optionally returning the permutation vector.
| solver | [in] Eigensolver that is calling the sorting routine | |
| n | [in] Size of the array | |
| evals | [in/out] Array of length n containing the eigenvalues to be sorted | |
| perm | [out] Vector of length n to store the permutation (optional) |
Definition at line 60 of file Anasazi_LOCA_Sort.C.
References globalData, and strategy.
| void Anasazi::LOCASort::sort | ( | std::vector< double > & | r_evals, | |
| std::vector< double > & | i_evals, | |||
| Teuchos::RCP< std::vector< int > > | perm = Teuchos::null, |
|||
| int | n = -1 | |||
| ) | const [virtual] |
Sort the vectors of eigenpairs with respect to the chosen sorting type, optionally returning the permutation vector.
| solver | [in] Eigensolver that is calling the sorting routine | |
| n | [in] Size of the array | |
| r_evals | [in/out] Array of length n containing the real part of the eigenvalues to be sorted | |
| i_evals | [in/out] Array of length n containing the imaginary part of the eigenvalues to be sorted | |
| perm | [out] Vector of length n to store the permutation (optional) |
Definition at line 72 of file Anasazi_LOCA_Sort.C.
References globalData, and strategy.
Teuchos::RCP<LOCA::GlobalData> Anasazi::LOCASort::globalData [protected] |
Teuchos::RCP<LOCA::EigenvalueSort::AbstractStrategy> Anasazi::LOCASort::strategy [protected] |
1.5.9