MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::detail::sylvester_limits< R > Struct Template Reference

The range limits of a Sylvester solve, from numeric_limits: More...

#include <sylvester.hpp>

Public Attributes

R smlnum {}
R bignum {}
bool have_floor = false
bool have_bignum = false

Detailed Description

template<typename R>
struct mtl::detail::sylvester_limits< R >

The range limits of a Sylvester solve, from numeric_limits:

  • smlnum = safmin * (m n / eps), LAPACK trsyl's floor for the singularity threshold. As in schur(), it is used only when it is below eps: a fixed-point type's smallest value is no safe minimum, and half precision's gives a floor near 0.06 m n.
  • bignum = max * eps / (m n), the size above which the scaled solve scales. For double and for posits it is LAPACK's eps / (safmin m n); unlike that form it also suits a type whose safe minimum is far from 1 / max, such as half. It is used only when it is above 1.

A type without numeric_limits has neither.

Member Data Documentation

◆ bignum

template<typename R>
R mtl::detail::sylvester_limits< R >::bignum {}

◆ have_bignum

template<typename R>
bool mtl::detail::sylvester_limits< R >::have_bignum = false

◆ have_floor

template<typename R>
bool mtl::detail::sylvester_limits< R >::have_floor = false

◆ smlnum

template<typename R>
R mtl::detail::sylvester_limits< R >::smlnum {}

The documentation for this struct was generated from the following file:
  • /home/runner/work/mtl5/mtl5/include/mtl/operation/sylvester.hpp