![]() |
KASKADE 7 development version
|
Classes | |
| struct | ChooseRegularization |
| struct | NoRegularization |
| struct | Regularization |
Functions | |
| template<class Scalar> | |
| void | stev (char jobz, int n, Scalar *diag, Scalar *subdiag, typename ScalarTraits< Scalar >::Real *w, Scalar *z=nullptr) |
| Computes all eigenvalues (and optionally eigenvectors) of a symmetric tridiagonal matrix via LAPACK *stev. | |
| void Kaskade::CG_Detail::stev | ( | char | jobz, |
| int | n, | ||
| Scalar * | diag, | ||
| Scalar * | subdiag, | ||
| typename ScalarTraits< Scalar >::Real * | w, | ||
| Scalar * | z = nullptr ) |
Computes all eigenvalues (and optionally eigenvectors) of a symmetric tridiagonal matrix via LAPACK *stev.
The matrix is given by its diagonal diag and subdiagonal subdiag (the superdiagonal equals the subdiagonal, as the matrix is symmetric). On return, diag is overwritten with the eigenvalues in ascending order; subdiag is destroyed.
| jobz | 'N' (eigenvalues only) or 'V' (eigenvalues and eigenvectors, then also requires a workspace z of size n*n for the eigenvectors) |
| n | the matrix dimension |
| diag | the diagonal entries on entry, the eigenvalues (ascending) on exit |
| subdiag | the subdiagonal entries (length n-1) on entry, destroyed on exit |
| w | output buffer for the eigenvalues (ascending); may coincide with diag |
| z | workspace of size n*n for the eigenvectors if jobz=='V', may be null for 'N' |
This low-level wrapper is used by the CG condition estimate to compute the Ritz values of the Lanczos tridiagonal matrix. The scalar type is dispatched at compile time via if constexpr to the LAPACK double/float routine; only real LAPACK scalar types are supported. The implementation lives in cgImplementation.cpp.
Referenced by Kaskade::CGBase< X, Xstar, CGImplementationType::STANDARD, TimerPolicy >::cond().