SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWHermQREigServer< TypeT > Class Template Reference

The default server for the QR method of computing eigenvalues. More...

#include <rw/lapack/heigsrv.h>

Inheritance diagram for RWHermQREigServer< TypeT >:
RWHermEigServer< TypeT >

Public Member Functions

 RWHermQREigServer (bool computeVecs=true)
 
virtual bool computeEigenVectors () const
 
void computeEigenVectors (bool computeVecs)
 
virtual RWSymEigDecomp< double > decompose (const RWTriDiagDecomp< TypeT > &A)
 
- Public Member Functions inherited from RWHermEigServer< TypeT >
virtual RWHermEigDecomp< TypeT > operator() (const RWHermBandMat< TypeT > &A)
 
virtual RWHermEigDecomp< TypeT > operator() (const RWHermMat< TypeT > &A)
 

Detailed Description

template<class TypeT>
class RWHermQREigServer< TypeT >

The class RWHermQREigServer is the server for the QR method of computing eigenvalues. This is the default server.

Synopsis
#include <rw/lapack/heigsrv.h>
// A is a RWHermBandMat<DComplex>
RWHermEigDecomp<DComplex> eig = server(A);
Encapsulates the eigenvalues and eigenvectors of a Hermitian matrix.
Definition hermeig.h:80
The default server for the QR method of computing eigenvalues.
Definition heigsrv.h:187
Example
#include <rw/lapack/heigsrv.h>
#include <iostream>
int main() {
RWHermMat<DComplex> A; // input a matrix
std::cin >> A;
RWHermQREigServer<DComplex> server; // configure a server
server.computeEigenVectors(false); // turn off eigenvectors
RWHermEigDecomp<DComplex> eig = server(A);
return 0;
}
Encapsulates a Hermitian matrix.
Definition hermmat.h:118
virtual bool computeEigenVectors() const

Constructor & Destructor Documentation

◆ RWHermQREigServer()

template<class TypeT >
RWHermQREigServer< TypeT >::RWHermQREigServer ( bool computeVecs = true)

Constructs a server. The parameter indicates whether this server should be configured to compute eigenvectors as well as eigenvalues.

Member Function Documentation

◆ computeEigenVectors() [1/2]

template<class TypeT >
virtual bool RWHermQREigServer< TypeT >::computeEigenVectors ( ) const
virtual

Returns true if this server is configured to compute eigenvectors as well as eigenvalues.

Implements RWHermEigServer< TypeT >.

◆ computeEigenVectors() [2/2]

template<class TypeT >
void RWHermQREigServer< TypeT >::computeEigenVectors ( bool computeVecs)

Sets whether or not the server should compute eigenvectors as well as eigenvalues.

◆ decompose()

template<class TypeT >
virtual RWSymEigDecomp< double > RWHermQREigServer< TypeT >::decompose ( const RWTriDiagDecomp< TypeT > & A)
virtual

Computes the eigenvalue decomposition of the tridiagonal matrix inside the tridiagonal decomposition.

Implements RWHermEigServer< TypeT >.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.