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

A reflector H = I - tau*v*v^H with v(0) == 1, and beta, H*x = beta*e_1, as householder_reflector() returns them. More...

#include <householder.hpp>

Public Attributes

vec::dense_vector< T > v
T tau
 0 means H = I
T beta
 H*x = beta*e_1; real-valued for a complex x; x(0) when tau == 0.

Detailed Description

template<typename T>
struct mtl::normalized_reflection< T >

A reflector H = I - tau*v*v^H with v(0) == 1, and beta, H*x = beta*e_1, as householder_reflector() returns them.

Supports structured bindings: auto [v, tau, beta] = householder_reflector(x);

Member Data Documentation

◆ beta

template<typename T>
T mtl::normalized_reflection< T >::beta

H*x = beta*e_1; real-valued for a complex x; x(0) when tau == 0.

◆ tau

template<typename T>
T mtl::normalized_reflection< T >::tau

0 means H = I

◆ v

template<typename T>
vec::dense_vector<T> mtl::normalized_reflection< T >::v

The documentation for this struct was generated from the following file: