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

The solution of a Sylvester equation scaled against overflow, as LAPACK trsyl returns it: X solves A X + sgn X B = scale * C with 0 < scale <= 1. More...

#include <sylvester.hpp>

Public Attributes

mat::dense2D< Value > X
 the solution of the scaled equation
magnitude_t< Value > scale {1}
 the factor applied to C, in (0, 1]
bool perturbed = false
 as in sylvester_result

Detailed Description

template<typename Value>
struct mtl::sylvester_scaled_result< Value >

The solution of a Sylvester equation scaled against overflow, as LAPACK trsyl returns it: X solves A X + sgn X B = scale * C with 0 < scale <= 1.

scale < 1 only when the solution itself, or an intermediate of its computation, would exceed the range of the element type.

Member Data Documentation

◆ perturbed

template<typename Value>
bool mtl::sylvester_scaled_result< Value >::perturbed = false

◆ scale

template<typename Value>
magnitude_t<Value> mtl::sylvester_scaled_result< Value >::scale {1}

the factor applied to C, in (0, 1]

◆ X

template<typename Value>
mat::dense2D<Value> mtl::sylvester_scaled_result< Value >::X

the solution of the scaled equation


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