#include <HessenbergDecomposition.h>
Public Types | |
typedef _MatrixType | MatrixType |
Synonym for the template parameter _MatrixType . | |
typedef MatrixType::Scalar | Scalar |
Scalar type for matrices of type MatrixType. | |
typedef MatrixType::Index | Index |
typedef Matrix< Scalar, SizeMinusOne, 1, Options &~RowMajor, MaxSizeMinusOne, 1 > | CoeffVectorType |
Type for vector of Householder coefficients. | |
typedef HouseholderSequence< MatrixType, typename internal::remove_all< typename CoeffVectorType::ConjugateReturnType >::type > | HouseholderSequenceType |
Return type of matrixQ(). | |
typedef internal::HessenbergDecompositionMatrixHReturnType< MatrixType > | MatrixHReturnType |
Size = MatrixType::RowsAtCompileTime | |
SizeMinusOne = Size == Dynamic ? Dynamic : Size - 1 | |
Options = MatrixType::Options | |
MaxSize = MatrixType::MaxRowsAtCompileTime | |
MaxSizeMinusOne = MaxSize == Dynamic ? Dynamic : MaxSize - 1 | |
enum | { Size = MatrixType::RowsAtCompileTime, SizeMinusOne = Size == Dynamic ? Dynamic : Size - 1, Options = MatrixType::Options, MaxSize = MatrixType::MaxRowsAtCompileTime, MaxSizeMinusOne = MaxSize == Dynamic ? Dynamic : MaxSize - 1 } |
Public Member Functions | |
HessenbergDecomposition (Index size=Size==Dynamic?2:Size) | |
Default constructor; the decomposition will be computed later. | |
HessenbergDecomposition (const MatrixType &matrix) | |
Constructor; computes Hessenberg decomposition of given matrix. | |
HessenbergDecomposition & | compute (const MatrixType &matrix) |
Computes Hessenberg decomposition of given matrix. | |
const CoeffVectorType & | householderCoefficients () const |
Returns the Householder coefficients. |
_MatrixType the type of the matrix of which we are computing the Hessenberg decomposition
This class performs an Hessenberg decomposition of a matrix . In the real case, the Hessenberg decomposition consists of an orthogonal matrix and a Hessenberg matrix such that . An orthogonal matrix is a matrix whose inverse equals its transpose (). A Hessenberg matrix has zeros below the subdiagonal, so it is almost upper triangular. The Hessenberg decomposition of a complex matrix is with unitary (that is, ).
Call the function compute() to compute the Hessenberg decomposition of a given matrix. Alternatively, you can use the HessenbergDecomposition(const MatrixType&) constructor which computes the Hessenberg decomposition at construction time. Once the decomposition is computed, you can use the matrixH() and matrixQ() functions to construct the matrices H and Q in the decomposition.
The documentation for matrixH() contains an example of the typical use of this class.
Definition at line 57 of file HessenbergDecomposition.h.
typedef Matrix<Scalar, SizeMinusOne, 1, Options & ~RowMajor, MaxSizeMinusOne, 1> Eigen::HessenbergDecomposition< _MatrixType >::CoeffVectorType |
Type for vector of Householder coefficients.
This is column vector with entries of type Scalar. The length of the vector is one less than the size of MatrixType, if it is a fixed-side type.
Definition at line 82 of file HessenbergDecomposition.h.
typedef HouseholderSequence<MatrixType,typename internal::remove_all<typename CoeffVectorType::ConjugateReturnType>::type> Eigen::HessenbergDecomposition< _MatrixType >::HouseholderSequenceType |
typedef MatrixType::Index Eigen::HessenbergDecomposition< _MatrixType >::Index |
Definition at line 74 of file HessenbergDecomposition.h.
typedef internal::HessenbergDecompositionMatrixHReturnType<MatrixType> Eigen::HessenbergDecomposition< _MatrixType >::MatrixHReturnType |
Definition at line 87 of file HessenbergDecomposition.h.
typedef _MatrixType Eigen::HessenbergDecomposition< _MatrixType >::MatrixType |
Synonym for the template parameter _MatrixType
.
Definition at line 62 of file HessenbergDecomposition.h.
typedef MatrixType::Scalar Eigen::HessenbergDecomposition< _MatrixType >::Scalar |
Scalar type for matrices of type MatrixType.
Definition at line 73 of file HessenbergDecomposition.h.
anonymous enum |
Definition at line 64 of file HessenbergDecomposition.h.
Eigen::HessenbergDecomposition< _MatrixType >::HessenbergDecomposition | ( | Index | size = Size==Dynamic ? 2 : Size |
) | [inline] |
Default constructor; the decomposition will be computed later.
[in] | size | The size of the matrix whose Hessenberg decomposition will be computed. |
size
parameter is only used as a hint. It is not an error to give a wrong size
, but it may impair performance.
Definition at line 100 of file HessenbergDecomposition.h.
Eigen::HessenbergDecomposition< _MatrixType >::HessenbergDecomposition | ( | const MatrixType & | matrix | ) | [inline] |
Constructor; computes Hessenberg decomposition of given matrix.
[in] | matrix | Square matrix whose Hessenberg decomposition is to be computed. |
Definition at line 118 of file HessenbergDecomposition.h.
HessenbergDecomposition& Eigen::HessenbergDecomposition< _MatrixType >::compute | ( | const MatrixType & | matrix | ) | [inline] |
Computes Hessenberg decomposition of given matrix.
[in] | matrix | Square matrix whose Hessenberg decomposition is to be computed. |
*this
This method reuses of the allocated data in the HessenbergDecomposition object.
Example:
Definition at line 150 of file HessenbergDecomposition.h.
Referenced by Eigen::RealSchur< _MatrixType >::compute(), Eigen::internal::complex_schur_reduce_to_hessenberg< MatrixType, false >::run(), and Eigen::internal::complex_schur_reduce_to_hessenberg< MatrixType, IsComplex >::run().
const CoeffVectorType& Eigen::HessenbergDecomposition< _MatrixType >::householderCoefficients | ( | ) | const [inline] |
Returns the Householder coefficients.
Definition at line 177 of file HessenbergDecomposition.h.