Anasazi  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | List of all members
Anasazi::HelperTraits< ScalarType > Class Template Reference

Class which defines basic traits for working with different scalar types. More...

#include <AnasaziHelperTraits.hpp>

Static Public Member Functions

static void sortRitzValues (const std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &rRV, const std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &iRV, std::vector< Value< ScalarType > > *RV, std::vector< int > *RO, std::vector< int > *RI)
 Helper function for correctly storing the Ritz values when the eigenproblem is non-Hermitian. More...
 
static void scaleRitzVectors (const std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &iRV, Teuchos::SerialDenseMatrix< int, ScalarType > *S)
 Helper function for correctly scaling the eigenvectors of the projected eigenproblem. More...
 
static void computeRitzResiduals (const std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &iRV, const Teuchos::SerialDenseMatrix< int, ScalarType > &S, std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > *RR)
 Helper function for correctly computing the Ritz residuals of the projected eigenproblem. More...
 

Detailed Description

template<class ScalarType>
class Anasazi::HelperTraits< ScalarType >

Class which defines basic traits for working with different scalar types.

An adapter for this traits class must exist for the ScalarType. If not, this class will produce a compile-time error.

Definition at line 63 of file AnasaziHelperTraits.hpp.

Member Function Documentation

template<class ScalarType >
void Anasazi::HelperTraits< ScalarType >::sortRitzValues ( const std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &  rRV,
const std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &  iRV,
std::vector< Value< ScalarType > > *  RV,
std::vector< int > *  RO,
std::vector< int > *  RI 
)
static

Helper function for correctly storing the Ritz values when the eigenproblem is non-Hermitian.

This allows us to use template specialization to compute the right index vector and correctly handle complex-conjugate pairs.

Definition at line 96 of file AnasaziHelperTraits.hpp.

template<class ScalarType >
void Anasazi::HelperTraits< ScalarType >::scaleRitzVectors ( const std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &  iRV,
Teuchos::SerialDenseMatrix< int, ScalarType > *  S 
)
static

Helper function for correctly scaling the eigenvectors of the projected eigenproblem.

This allows us to use template specialization to compute the right scaling so the Ritz residuals are correct.

Definition at line 144 of file AnasaziHelperTraits.hpp.

template<class ScalarType >
void Anasazi::HelperTraits< ScalarType >::computeRitzResiduals ( const std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > &  iRV,
const Teuchos::SerialDenseMatrix< int, ScalarType > &  S,
std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > *  RR 
)
static

Helper function for correctly computing the Ritz residuals of the projected eigenproblem.

This allows us to use template specialization to ensure the Ritz residuals are correct.

Definition at line 175 of file AnasaziHelperTraits.hpp.


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