SourcePro® API Reference Guide

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

Default server for the QR method of computing eigenvalues. More...

#include <rw/lapack/seigsrv.h>

Inheritance diagram for RWSymQREigServer< TypeT >:
RWSymEigServer< TypeT >

Public Member Functions

 RWSymQREigServer (bool computeVecs=true)
 
virtual bool computeEigenVectors () const
 
void computeEigenVectors (bool computeVecs)
 
virtual RWSymEigDecomp< TypeT > decompose (const RWTriDiagDecomp< TypeT > &A)
 
- Public Member Functions inherited from RWSymEigServer< TypeT >
virtual RWSymEigDecomp< TypeT > operator() (const RWSymBandMat< TypeT > &A)
 
virtual RWSymEigDecomp< TypeT > operator() (const RWSymMat< TypeT > &A)
 

Detailed Description

template<class TypeT>
class RWSymQREigServer< TypeT >

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

Synopsis
#include <rw/lapack/seigsrv.h>
RWSymEigDecomp<double> eig = server(A); // A is a RWSymBandMat<double>
Encapsulates the eigenvalues and eigenvectors of a symmetric matrix.
Definition symeig.h:86
Default server for the QR method of computing eigenvalues.
Definition seigsrv.h:178
Example
#include <rw/lapack/seigsrv.h>
#include <iostream>
int main() {
RWSymMat<double> A; // input a matrix
std::cin >> A;
RWSymQREigServer<double> server; // configure a server
server.computeEigenVectors(false); // turn off eigenvectors
RWSymEigDecomp<double> eig = server(A);
return 0;
}
Represents a symmetric matrix.
Definition symmat.h:112
virtual bool computeEigenVectors() const

Constructor & Destructor Documentation

◆ RWSymQREigServer()

template<class TypeT >
RWSymQREigServer< TypeT >::RWSymQREigServer ( 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 RWSymQREigServer< TypeT >::computeEigenVectors ( ) const
virtual

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

Implements RWSymEigServer< TypeT >.

◆ computeEigenVectors() [2/2]

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

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

◆ decompose()

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

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

Implements RWSymEigServer< TypeT >.

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