
Module: Linear Algebra Group: Symmetric Eigenvalue Decomposition classes
Does not inherit
#include <rw/lapack/seigsrv.h> RWSymQREigServer<double> server; RWSymEigDecomp<double> eig = server(A); // A is a
// RWSymBandMat<double> #include <rw/lapack/heigsrv.h> RWHermQREigServer<double> server; RWHermEigDecomp<double> eig = server(A); // A is a
// RWHermBandMat<DComplex>
The classes RWSymQREigServer<T> and RWHermQREigServer<T> are the servers for the QR method of computing eigenvalues. These are the default servers.
#include <iostream>
#include <rw/lapack/seigsrv.h>
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;
}
RWSymQREigServer(bool computeVecs=true); RWHermQREigServer(bool computeVecs=true);
Constructs a server. The parameter indicates whether this server should be configured to compute eigenvectors as well as eigenvalues.
void
RWSymQREigServer<T>::computeEigenVectors(bool);
void
RWHermQREigServer<DComplex>::computeEigenVectors
(bool);
Sets whether or not the server should compute eigenvectors as well as eigenvalues.
bool
RWSymQREigServer<T>::computeEigenVectors() const;
bool
RWHermQREigServer<DComplex>::computeEigenVectors()
const;
Returns true if this server is configured to compute eigenvectors as well as eigenvalues.
RWSymEigDecomp<T> RWSymQREigServer<T>::decompose
(const RWSymTriDiagDecomp<T>& A) const RWSymEigDecomp<double> RWHermQREigServer<DComplex>::decompose
(const RWSymTriDiagDecomp<double>& A) const
Computes the eigenvalue decomposition of the tridiagonal matrix inside the tridiagonal decomposition.
RWSymEigDecomp<T> RWSymQREigServer<T>::operator();
(const RWSymMat<T>& A) const; RWSymEigDecomp<T> RWSymQREigServer<T>::operator();
(const RWSymBandMat<T>& A) const; RWHermEigDecomp<DComplex> RWHermQREigServer<DComplex>::operator();
(const RWHermMat<DComplex>& A) const; RWHermEigDecomp<DComplex> RWHermQREigServer<DComplex>::operator();
(const RWHermBandMat<DComplex>& A) const;
Computes a symmetric eigenvalue decomposition.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.