template<typename Scalar = double>
class Spectra::TridiagQR< Scalar >
Perform the QR decomposition of a tridiagonal matrix, a special case of upper Hessenberg matrices.
- Template Parameters
-
| Scalar | The element type of the matrix. Currently supported types are float, double and long double. |
|
| | TridiagQR (Index size) |
| | Constructor to preallocate memory. More...
|
| |
| | TridiagQR (ConstGenericMatrix &mat, const Scalar &shift=Scalar(0)) |
| | Constructor to create an object that performs and stores the QR decomposition of a tridiagonal matrix mat, with an optional shift: \(T-sI=QR\). More...
|
| |
| void | compute (ConstGenericMatrix &mat, const Scalar &shift=Scalar(0)) override |
| | Compute the QR decomposition of a tridiagonal matrix with an optional shift. More...
|
| |
| Matrix | matrix_R () const override |
| | Return the \(R\) matrix in the QR decomposition, which is an upper triangular matrix. More...
|
| |
| void | matrix_QtHQ (Matrix &dest) const override |
| | Overwrite dest with \(Q'TQ = RQ + sI\), where \(T\) is the input matrix mat, and \(s\) is the shift. More...
|
| |
| void | matrix_QtHQ (ComplexMatrix &dest) const |
| | The version of matrix_QtHQ() when dest has a complex value type. More...
|
| |
| | UpperHessenbergQR (Index size) |
| | Constructor to preallocate memory. More...
|
| |
| | UpperHessenbergQR (ConstGenericMatrix &mat, const double &shift=double(0)) |
| | Constructor to create an object that performs and stores the QR decomposition of an upper Hessenberg matrix mat, with an optional shift: \(H-sI=QR\). More...
|
| |
|
virtual | ~UpperHessenbergQR () |
| | Virtual destructor.
|
| |
| virtual void | compute (ConstGenericMatrix &mat, const double &shift=double(0)) |
| | Compute the QR decomposition of an upper Hessenberg matrix with an optional shift. More...
|
| |
| virtual Matrix | matrix_R () const |
| | Return the \(R\) matrix in the QR decomposition, which is an upper triangular matrix. More...
|
| |
| virtual void | matrix_QtHQ (Matrix &dest) const |
| | Overwrite dest with \(Q^H H Q = RQ + sI\), where \(H\) is the input matrix mat, and \(s\) is the shift. More...
|
| |
| void | apply_QY (Vector &Y) const |
| | Apply the \(Q\) matrix to a vector \(y\). More...
|
| |
| void | apply_QY (GenericMatrix Y) const |
| | Apply the \(Q\) matrix to another matrix \(Y\). More...
|
| |
| void | apply_QtY (Vector &Y) const |
| | Apply the \(Q\) matrix to a vector \(y\). More...
|
| |
| void | apply_QtY (GenericMatrix Y) const |
| | Apply the \(Q\) matrix to another matrix \(Y\). More...
|
| |
| void | apply_YQ (GenericMatrix Y) const |
| | Apply the \(Q\) matrix to another matrix \(Y\). More...
|
| |
| void | apply_YQt (GenericMatrix Y) const |
| | Apply the \(Q\) matrix to another matrix \(Y\). More...
|
| |