![]() |
Eigen
3.2.10
|
Performs a real QZ decomposition of a pair of square matrices.
This is defined in the Eigenvalues module.
| _MatrixType | the type of the matrix of which we are computing the real QZ decomposition; this is expected to be an instantiation of the Matrix class template. |
Given a real square matrices A and B, this class computes the real QZ decomposition: 


The eigenvalues of the pencil 
Call the function compute() to compute the real QZ decomposition of a given pair of matrices. Alternatively, you can use the RealQZ(const MatrixType& B, const MatrixType& B, bool computeQZ) constructor which computes the real QZ decomposition at construction time. Once the decomposition is computed, you can use the matrixS(), matrixT(), matrixQ() and matrixZ() functions to retrieve the matrices S, T, Q and Z in the decomposition. If computeQZ==false, some time is saved by not computing matrices Q and Z.
Example:
Output:
Public Member Functions | |
| RealQZ & | compute (const MatrixType &A, const MatrixType &B, bool computeQZ=true) |
| Computes QZ decomposition of given matrix. | |
| ComputationInfo | info () const |
| Reports whether previous computation was successful. | |
| Index | iterations () const |
| Returns number of performed QR-like iterations. | |
| const MatrixType & | matrixQ () const |
| Returns matrix Q in the QZ decomposition. | |
| const MatrixType & | matrixS () const |
| Returns matrix S in the QZ decomposition. | |
| const MatrixType & | matrixT () const |
| Returns matrix S in the QZ decomposition. | |
| const MatrixType & | matrixZ () const |
| Returns matrix Z in the QZ decomposition. | |
| RealQZ (const MatrixType &A, const MatrixType &B, bool computeQZ=true) | |
| Constructor; computes real QZ decomposition of given matrices. | |
| RealQZ (Index size=RowsAtCompileTime==Dynamic ? 1 :RowsAtCompileTime) | |
| Default constructor. | |
| RealQZ & | setMaxIterations (Index maxIters) |
|
inline |
Default constructor.
| [in] | size | Positive integer, size of the matrix whose QZ decomposition will be computed. |
The default constructor is useful in cases in which the user intends to perform decompositions via compute(). The size parameter is only used as a hint. It is not an error to give a wrong size, but it may impair performance.
Referenced by compute(), and setMaxIterations().
|
inline |
| RealQZ< MatrixType > & compute | ( | const MatrixType & | A, |
| const MatrixType & | B, | ||
| bool | computeQZ = true ) |
Computes QZ decomposition of given matrix.
*this References Eigen::NoConvergence, RealQZ(), and Eigen::Success.
Referenced by RealQZ().
|
inline |
Reports whether previous computation was successful.
Success if computation was succesful, NoConvergence otherwise.
|
inline |
Returns matrix Q in the QZ decomposition.
|
inline |
Returns matrix S in the QZ decomposition.
|
inline |
Returns matrix S in the QZ decomposition.
|
inline |
Returns matrix Z in the QZ decomposition.
|
inline |
Sets the maximal number of iterations allowed to converge to one eigenvalue or decouple the problem.
References RealQZ().