QuantLib
A free/open-source library for quantitative finance
Reference manual - version 1.20
Public Member Functions | List of all members
SymmetricSchurDecomposition Class Reference

symmetric threshold Jacobi algorithm. More...

#include <ql/math/matrixutilities/symmetricschurdecomposition.hpp>

Public Member Functions

 SymmetricSchurDecomposition (const Matrix &s)
 
const Arrayeigenvalues () const
 
const Matrixeigenvectors () const
 

Detailed Description

symmetric threshold Jacobi algorithm.

Given a real symmetric matrix S, the Schur decomposition finds the eigenvalues and eigenvectors of S. If D is the diagonal matrix formed by the eigenvalues and U the unitarian matrix of the eigenvectors we can write the Schur decomposition as

\[ S = U \cdot D \cdot U^T \, ,\]

where \( \cdot \) is the standard matrix product and \( ^T \) is the transpose operator. This class implements the Schur decomposition using the symmetric threshold Jacobi algorithm. For details on the different Jacobi transfomations see "Matrix computation," second edition, by Golub and Van Loan, The Johns Hopkins University Press

Tests:
the correctness of the returned values is tested by checking their properties.

Constructor & Destructor Documentation

◆ SymmetricSchurDecomposition()

Precondition
s must be symmetric