>
>#include <rw/fseigsrv.h> // FloatSymQREigServer #include <rw/dseigsrv.h> // DoubleSymQREigServer #include <rw/cheigsrv.h> // DComplexHermQREigServer DoubleSymQREigServer server; DoubleSymEigDecomp eig = server(A); // A is a
// DoubleSym[Band]Mat
The classes {TYPE}SymQREigServer and DComplexHermQREigServer are the servers for the QR method of computing eigenvalues. These are the default servers.
>#include <rw/dseigsrv.h> main() { DoubleSymMat A; // input a matrix cin >> A; DoubleQREigServer server; // configure a server server.computeEigenVectors(FALSE); // turn off eigenvectors DoubleSymEigDecomp eig = server(A); }>
FloatSymQREigServer(RWBoolean computeVecs=TRUE); DoubleSymQREigServer(RWBoolean computeVecs=TRUE); DComplexHermQREigServer(RWBoolean computeVecs=TRUE);
Constructs a server. The parameter indicates whether this server should be configured to compute eigenvectors as well as eigenvalues.
void FloatSymQREigServer::computeEigenVectors(RWBoolean); void DoubleSymQREigServer::computeEigenVectors(RWBoolean); void DComplexHermQREigServer::computeEigenVectors(RWBoolean);
Sets whether or not the server should compute eigenvectors as well as eigenvalues.
RWBoolean FloatSymQREigServer::computeEigenVectors() const; RWBoolean DoubleSymQREigServer::computeEigenVectors() const; RWBoolean DComplexHermQREigServer::computeEigenVectors() const;
Returns TRUE if this server is configured to compute eigenvectors as well as eigenvalues.
FloatSymEigDecomp FloatSymQREigServer::decompose
(const FloatSymTriDiagDecomp& A) const DoubleSymEigDecomp DoubleSymQREigServer::decompose
(const DoubleSymTriDiagDecomp& A) const DoubleSymEigDecomp DComplexHermQREigServer::decompose
(const DoubleSymTriDiagDecomp& A) const
Computes the eigenvalue decomposition of the tridiagonal matrix inside the tridiagonal decomposition.
FloatSymEigDecomp FloatSymQREigDecomp::operator();
(const FloatSymMat& A) const; FloatSymEigDecomp FloatSymQREigDecomp::operator();
(const FloatSymBandMat& A) const; DoubleSymEigDecomp DoubleSymQREigDecomp::operator();
(const DoubleSymMat& A) const; DoubleSymEigDecomp DoubleSymQREigDecomp::operator();
(const DoubleSymBandMat& A) const; DComplexSymEigDecomp DComplexSymQREigDecomp::operator();
(const DComplexSymMat& A) const; DComplexHermEigDecomp DComplexHermQREigDecomp::operator();
(const DComplexHermBandMat& A) const;
Computes a symmetric eigenvalue decomposition.
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.