QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
tridiag. QR eigen decomposition with explicite shift aka Wilkinson More...
#include <tqreigendecomposition.hpp>
Public Types | |
enum | EigenVectorCalculation { WithEigenVector , WithoutEigenVector , OnlyFirstRowEigenVector } |
enum | ShiftStrategy { NoShift , Overrelaxation , CloseEigenValue } |
Public Member Functions | |
TqrEigenDecomposition (const Array &diag, const Array &sub, EigenVectorCalculation calc=WithEigenVector, ShiftStrategy strategy=CloseEigenValue) | |
const Array & | eigenvalues () const |
const Matrix & | eigenvectors () const |
Size | iterations () const |
Private Member Functions | |
bool | offDiagIsZero (Size k, Array &e) |
Private Attributes | |
Size | iter_ = 0 |
Array | d_ |
Matrix | ev_ |
tridiag. QR eigen decomposition with explicite shift aka Wilkinson
References:
Wilkinson, J.H. and Reinsch, C. 1971, Linear Algebra, vol. II of Handbook for Automatic Computation (New York: Springer-Verlag)
"Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery,
Definition at line 44 of file tqreigendecomposition.hpp.
Enumerator | |
---|---|
WithEigenVector | |
WithoutEigenVector | |
OnlyFirstRowEigenVector |
Definition at line 46 of file tqreigendecomposition.hpp.
enum ShiftStrategy |
Enumerator | |
---|---|
NoShift | |
Overrelaxation | |
CloseEigenValue |
Definition at line 50 of file tqreigendecomposition.hpp.
TqrEigenDecomposition | ( | const Array & | diag, |
const Array & | sub, | ||
EigenVectorCalculation | calc = WithEigenVector , |
||
ShiftStrategy | strategy = CloseEigenValue |
||
) |
const Array & eigenvalues | ( | ) | const |
Definition at line 59 of file tqreigendecomposition.hpp.
const Matrix & eigenvectors | ( | ) | const |
Definition at line 60 of file tqreigendecomposition.hpp.
Size iterations | ( | ) | const |
Definition at line 62 of file tqreigendecomposition.hpp.
Definition at line 144 of file tqreigendecomposition.cpp.
|
private |
Definition at line 67 of file tqreigendecomposition.hpp.
|
private |
Definition at line 68 of file tqreigendecomposition.hpp.
|
private |
Definition at line 69 of file tqreigendecomposition.hpp.