SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Encapsulates the eigenvalues and eigenvectors of a nonsymmetric matrix. More...
#include <rw/lapack/eig.h>
Public Member Functions | |
RWEigDecomp () | |
RWEigDecomp (const RWEigDecomp &) | |
template<class TypeU > | |
RWEigDecomp (const RWEigDecomp< typename RWTEnableIf< RWTIsSame< TypeU, double >::value, double >::type > &A) | |
RWEigDecomp (const RWGenMat< TypeT > &A, bool computeVecs=true) | |
unsigned | cols () const |
DComplex | eigenValue (int i) const |
const RWMathVec< DComplex > | eigenValues () const |
void | factor (const RWGenMat< TypeT > &A, bool computeVecs=true) |
bool | fail () const |
bool | good () const |
bool | inaccurate () const |
const RWMathVec< DComplex > | leftEigenVector (int i) const |
const RWGenMat< DComplex > | leftEigenVectors () const |
unsigned | numEigenValues () const |
unsigned | numLeftEigenVectors () const |
unsigned | numRightEigenVectors () const |
RWEigDecomp< TypeT > & | operator= (const RWEigDecomp< TypeT > &) |
const RWMathVec< DComplex > | rightEigenVector (int i) const |
const RWGenMat< DComplex > | rightEigenVectors () const |
unsigned | rows () const |
Friends | |
template<class T1 > | |
class | RWEigServer |
The class RWEigDecomp encapsulates the eigenvalues and eigenvectors of a nonsymmetric matrix. You can construct an eigenvalue decomposition object in two ways:
RWEigDecomp< TypeT >::RWEigDecomp | ( | ) |
Default constructor. Builds a decomposition of a 0 x 0 matrix.
RWEigDecomp< TypeT >::RWEigDecomp | ( | const RWEigDecomp< TypeT > & | ) |
Copy constructor. Where possible, data is referenced for efficiency.
RWEigDecomp< TypeT >::RWEigDecomp | ( | const RWEigDecomp< typename RWTEnableIf< RWTIsSame< TypeU, double >::value, double >::type > & | A | ) |
precision conversion constructor. Where possible, data is referenced for efficiency.
RWEigDecomp< TypeT >::RWEigDecomp | ( | const RWGenMat< TypeT > & | A, |
bool | computeVecs = true ) |
Constructs a representation of the eigenvalues and eigenvectors of the matrix A. The boolean parameter computeVecs controls whether eigenvectors are computed.
|
inline |
Returns the number of columns in the decomposed matrix.
DComplex RWEigDecomp< TypeT >::eigenValue | ( | int | i | ) | const |
Returns the ith eigenvalue.
|
inline |
Returns a vector of all computed eigenvalues.
void RWEigDecomp< TypeT >::factor | ( | const RWGenMat< TypeT > & | A, |
bool | computeVecs = true ) |
Constructs a representation of the eigenvalues and eigenvectors of the matrix A. The boolean parameter computeVecs controls whether eigenvectors are computed. The current contents of the decomposition are lost.
bool RWEigDecomp< TypeT >::fail | ( | ) | const |
Returns true
if an eigenvalue or eigenvector that is supposed to be computed fails to be computed.
bool RWEigDecomp< TypeT >::good | ( | ) | const |
Returns true
if all desired eigenvalues and eigenvectors are successfully computed to full desired accuracy.
bool RWEigDecomp< TypeT >::inaccurate | ( | ) | const |
Returns true
if either an eigenvalue or eigenvector that is supposed to be computed fails to be computed, or some of the computed quantities are not computed to full desired accuracy.
const RWMathVec< DComplex > RWEigDecomp< TypeT >::leftEigenVector | ( | int | i | ) | const |
Returns the ith left eigenvector.
const RWGenMat< DComplex > RWEigDecomp< TypeT >::leftEigenVectors | ( | ) | const |
Returns a vector of all computed left eigenvectors.
|
inline |
Returns the number of eigenvalues or eigenvectors represented in this object.
|
inline |
Returns the number of eigenvalues or eigenvectors represented in this object.
|
inline |
Returns the number of eigenvalues or eigenvectors represented in this object.
RWEigDecomp< TypeT > & RWEigDecomp< TypeT >::operator= | ( | const RWEigDecomp< TypeT > & | ) |
Assigns the passed value to this decomposition. The current contents of the decomposition are lost.
const RWMathVec< DComplex > RWEigDecomp< TypeT >::rightEigenVector | ( | int | i | ) | const |
Returns the ith right eigenvector.
const RWGenMat< DComplex > RWEigDecomp< TypeT >::rightEigenVectors | ( | ) | const |
Returns a matrix of all computed right eigenvectors.
|
inline |
Returns the number of rows in the decomposed matrix.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |