|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
A textbook Householder reflector (#559): H = I - (2/vtv)*v*v^T with v NOT normalized, and H*x = alpha*e_1. More...
#include <householder.hpp>
Public Attributes | |
| vec::dense_vector< T > | v |
| T | vtv |
| v^T v; not positive (zero, or NaN) means "skip this column" | |
| T | alpha |
| Hx = alpha*e_1, alpha = -sign(x(0))||x||. | |
A textbook Householder reflector (#559): H = I - (2/vtv)*v*v^T with v NOT normalized, and H*x = alpha*e_1.
Supports structured bindings: auto [v, vtv, alpha] = householder(x, tag::textbook_reflector{});
| T mtl::textbook_reflection< T >::alpha |
Hx = alpha*e_1, alpha = -sign(x(0))||x||.
| vec::dense_vector<T> mtl::textbook_reflection< T >::v |
| T mtl::textbook_reflection< T >::vtv |
v^T v; not positive (zero, or NaN) means "skip this column"