rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWSymQREigServer< TypeT > Class Template Reference
[Symmetric Eigenvalue Decomposition]

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

#include <rw/lapack/seigsrv.h>

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

List of all members.

Public Member Functions

 RWSymQREigServer (bool computeVecs=true)
virtual RWSymEigDecomp< TypeT > decompose (const RWTriDiagDecomp< TypeT > &A)
virtual bool computeEigenVectors () const
void computeEigenVectors (bool computeVecs)

Detailed Description

template<class TypeT>
class RWSymQREigServer< TypeT >

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

Synopsis

 #include <rw/lapack/seigsrv.h>
 
 RWSymQREigServer<double> server;
 RWSymEigDecomp<double> eig = server(A); // A is a RWSymBandMat<double>

Examples

 #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;
 }

Constructor & Destructor Documentation

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

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

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

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 >.

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 >.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© 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.