Anasazi
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
src
AnasaziSortManager.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Anasazi: Block Eigensolvers Package
4
//
5
// Copyright 2004 NTESS and the Anasazi contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef ANASAZI_SORTMANAGER_HPP
11
#define ANASAZI_SORTMANAGER_HPP
12
17
26
27
#include "
AnasaziConfigDefs.hpp
"
28
#include "
AnasaziTypes.hpp
"
29
#include "Teuchos_Assert.hpp"
30
#include "Teuchos_ParameterList.hpp"
31
32
33
34
namespace
Anasazi
{
35
37
38
41
class
SortManagerError :
public
AnasaziError
42
{
public
: SortManagerError(
const
std::string& what_arg) : AnasaziError(what_arg) {}};
43
45
46
template
<
class
MagnitudeType>
47
class
SortManager
{
48
49
public
:
50
52
SortManager
() {};
53
55
SortManager
(Teuchos::ParameterList &pl) {};
56
58
virtual
~SortManager
() {};
59
70
virtual
void
sort
(std::vector<MagnitudeType> &evals, Teuchos::RCP<std::vector<int> > perm = Teuchos::null,
int
n = -1)
const
= 0;
71
90
virtual
void
sort
(std::vector<MagnitudeType> &r_evals,
91
std::vector<MagnitudeType> &i_evals,
92
Teuchos::RCP<std::vector<int> > perm = Teuchos::null,
93
int
n = -1)
const
= 0;
94
95
};
96
97
}
98
99
#endif
// ANASAZI_SORTMANAGER_HPP
100
AnasaziConfigDefs.hpp
Anasazi header file which uses auto-configuration information to include necessary C++ headers.
AnasaziTypes.hpp
Types and exceptions used within Anasazi solvers and interfaces.
Anasazi::SortManager::sort
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.
Anasazi::SortManager::sort
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.
Anasazi::SortManager::SortManager
SortManager()
Default constructor.
Definition
AnasaziSortManager.hpp:52
Anasazi::SortManager::SortManager
SortManager(Teuchos::ParameterList &pl)
Constructor accepting a Teuchos::ParameterList. This is the default mode for instantiating a SortMana...
Definition
AnasaziSortManager.hpp:55
Anasazi::SortManager::~SortManager
virtual ~SortManager()
Destructor.
Definition
AnasaziSortManager.hpp:58
Anasazi
Namespace Anasazi contains the classes, structs, enums and utilities used by the Anasazi package.
Generated by
1.17.0