MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
eigenvalue_symmetric.hpp File Reference
#include <cmath>
#include <complex>
#include <algorithm>
#include <cassert>
#include <limits>
#include <stdexcept>
#include <string>
#include <vector>
#include <mtl/concepts/matrix.hpp>
#include <mtl/concepts/scalar.hpp>
#include <mtl/concepts/magnitude.hpp>
#include <mtl/math/pow2_scaling.hpp>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/mat/dense2D.hpp>
#include <mtl/operation/hessenberg.hpp>
#include <mtl/functor/scalar/real.hpp>
#include <mtl/functor/scalar/conj.hpp>
#include <mtl/math/identity.hpp>
#include <mtl/detail/matrix_checks.hpp>
#include <mtl/detail/unit_roundoff.hpp>
#include <mtl/interface/dispatch_traits.hpp>

Namespaces

namespace  mtl
namespace  mtl::detail
 mat*vec multiply into pre-allocated y: y = A * x.

Functions

template<typename Real>
bool mtl::detail::tridiagonal_negligible (const Real &e, const Real &d0, const Real &d1, const Real &tol)
 Deflation test of the implicit tridiagonal QR: is the subdiagonal entry e, between diagonal entries d0 and d1, negligible?
template<typename Real>
Real mtl::detail::default_eigen_tolerance ()
 Default tolerance of the symmetric eigensolvers: the machine epsilon of the eigenvalue type.
template<typename Accumulator = void, FieldMatrix M>
auto mtl::eigenvalue_symmetric_generic (const M &A, magnitude_t< typename M::value_type > tol=detail::default_eigen_tolerance< magnitude_t< typename M::value_type > >(), typename M::size_type max_iter=0)
 Generic (LAPACK-free) symmetric/Hermitian eigenvalue solver: tridiagonalize, then run implicit QR with Wilkinson shifts on the tridiagonal form.
template<typename Accumulator = void, FieldMatrix M>
auto mtl::eigenvalue_symmetric (const M &A, magnitude_t< typename M::value_type > tol=detail::default_eigen_tolerance< magnitude_t< typename M::value_type > >(), typename M::size_type max_iter=0)
 Compute eigenvalues of a symmetric/Hermitian matrix via implicit QR on tridiagonal form.
template<typename Accumulator = void, FieldMatrix M>
auto mtl::eigen_symmetric (const M &A, magnitude_t< typename M::value_type > tol=detail::default_eigen_tolerance< magnitude_t< typename M::value_type > >(), typename M::size_type max_iter=0)
 Compute eigenvalues and eigenvectors of a symmetric or Hermitian matrix.