NOX Development
Loading...
Searching...
No Matches
Anasazi::LOCASort Class Reference

An implementation of the Anasazi::SortManager that performs a collection of common sorting techniques. More...

#include <Anasazi_LOCA_Sort.H>

Inheritance diagram for Anasazi::LOCASort:
Collaboration diagram for Anasazi::LOCASort:

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::GlobalDataglobalData
 Global data.
Teuchos::RCP< LOCA::EigenvalueSort::AbstractStrategystrategy
 EigenvalueSort strategy.

Detailed Description

An implementation of the Anasazi::SortManager that performs a collection of common sorting techniques.

Constructor & Destructor Documentation

◆ LOCASort()

Anasazi::LOCASort::LOCASort ( const Teuchos::RCP< LOCA::GlobalData > & global_data,
const Teuchos::RCP< LOCA::EigenvalueSort::AbstractStrategy > & strategy_ )

Constructor.

Parameters
global_data[in] Global data object
strategy_[in] Ref-count ptr to LOCA sorting strategy

References globalData, and strategy.

Member Function Documentation

◆ sort() [1/2]

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.

Parameters
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)
Returns
Returns the status of the sorting routine

References globalData, and strategy.

◆ sort() [2/2]

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.

Parameters
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)
Returns
Returns the status of the sorting routine

References globalData, and strategy.


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