MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
francis_qr.hpp File Reference
#include <cmath>
#include <limits>
#include <stdexcept>
#include <string>
#include <string_view>
#include <mtl/vec/dense_vector.hpp>
#include <mtl/mat/dense2D.hpp>
#include <mtl/detail/matrix_checks.hpp>
#include <mtl/math/pow2_scaling.hpp>
#include <mtl/detail/unit_roundoff.hpp>

Classes

struct  mtl::detail::lanv2_constants< T >
 Constants for lanv2(): the relative precision and the power-of-two scale window of LAPACK's dlanv2. More...
struct  mtl::detail::francis_options< T >
 Options for francis_qr(). More...

Namespaces

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

Enumerations

enum class  mtl::detail::francis_output { mtl::detail::eigenvalues , mtl::detail::schur_form }
 What francis_qr() computes. More...

Functions

template<typename T>
lanv2_constants< T > mtl::detail::make_lanv2_constants ()
template<typename T>
T mtl::detail::lapy2 (T x, T y)
 sqrt(x^2 + y^2) without avoidable overflow or underflow.
template<typename T>
T mtl::detail::with_sign_of (T a, T b)
 |a| with the sign of b, where b == 0 counts as positive.
template<typename T>
void mtl::detail::lanv2 (T &a, T &b, T &c, T &d, T &rt1r, T &rt1i, T &rt2r, T &rt2i, T &cs, T &sn, const lanv2_constants< T > &k)
 The Schur factorization of a real 2x2 block in standard form,.
template<francis_output Output, typename T>
void mtl::detail::francis_qr (mat::dense2D< T > &H, mat::dense2D< T > *Z, vec::dense_vector< T > &wr, vec::dense_vector< T > &wi, const francis_options< T > &opt)
 Francis implicit double-shift QR on the upper Hessenberg H (EISPACK hqr / hqr2).
template<typename T>
int mtl::detail::scale_to_unit_binade (mat::dense2D< T > &W)
 Scales W by a power of two so max |w_ij| lies in [1/2, 1], and returns the exponent k that undoes it: W_in = W_out * 2^k (0 if W is zero or already in range).