10#ifndef ANASAZI_SORTMANAGER_HPP
11#define ANASAZI_SORTMANAGER_HPP
29#include "Teuchos_Assert.hpp"
30#include "Teuchos_ParameterList.hpp"
46 template<
class MagnitudeType>
70 virtual void sort(std::vector<MagnitudeType> &
evals, Teuchos::RCP<std::vector<int> >
perm = Teuchos::null,
int n = -1)
const = 0;
91 std::vector<MagnitudeType> &
i_evals,
92 Teuchos::RCP<std::vector<int> >
perm = Teuchos::null,
93 int n = -1)
const = 0;
Anasazi header file which uses auto-configuration information to include necessary C++ headers.
Types and exceptions used within Anasazi solvers and interfaces.
An exception class parent to all Anasazi exceptions.
Anasazi's templated virtual class for constructing an operator that can interface with the OperatorTr...
SortManagerError is thrown when the Anasazi::SortManager is unable to sort the numbers,...
Anasazi's templated pure virtual class for managing the sorting of approximate eigenvalues computed b...
virtual void sort(std::vector< MagnitudeType > &r_evals, std::vector< MagnitudeType > &i_evals, Teuchos::RCP< std::vector< int > > perm=Teuchos::null, int n=-1) const =0
Sort complex eigenvalues, optionally returning the permutation vector.
virtual void sort(std::vector< MagnitudeType > &evals, Teuchos::RCP< std::vector< int > > perm=Teuchos::null, int n=-1) const =0
Sort real eigenvalues, optionally returning the permutation vector.
SortManager()
Default constructor.
SortManager(Teuchos::ParameterList &pl)
Constructor accepting a Teuchos::ParameterList. This is the default mode for instantiating a SortMana...
virtual ~SortManager()
Destructor.
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package.