MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
eigenvalue.hpp File Reference
#include <cmath>
#include <complex>
#include <algorithm>
#include <cassert>
#include <initializer_list>
#include <limits>
#include <stdexcept>
#include <vector>
#include <mtl/concepts/matrix.hpp>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/mat/dense2D.hpp>
#include <mtl/operation/hessenberg.hpp>
#include <mtl/detail/francis_qr.hpp>
#include <mtl/detail/unit_roundoff.hpp>
#include <mtl/math/identity.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 T>
std::vector< std::complex< T > > mtl::detail::quasi_triangular_eigenvector (const mat::dense2D< T > &R, std::size_t k, std::complex< T > lambda, T smin, T limit)
 A right eigenvector y of the real quasi-upper-triangular T (a real Schur form, 2x2 blocks in standard form) for its eigenvalue lambda at index k: (T - lambda I) y = 0, with y zero below lambda's block.
template<typename Accumulator = void, FieldMatrix M>
auto mtl::eigenvalue (const M &A, typename M::value_type tol=1e-10, typename M::size_type max_iter=0)
 Compute eigenvalues of a general (non-symmetric) square matrix via the Francis implicit double-shift QR algorithm on the upper Hessenberg form.
template<typename Accumulator = void, FieldMatrix M>
auto mtl::eigen (const M &A, typename M::value_type tol=1e-10, typename M::size_type max_iter=0)
 Compute eigenvalues AND right eigenvectors of a general (non-symmetric) square matrix.