Function householder_transform (o2scl_linalg)

O2scl : Function List

template<class vec_t>
double o2scl_linalg::householder_transform(const size_t n, vec_t &v)

Replace the vector v with a Householder vector and a coefficient tau that annihilates v[1] through v[n-1] (inclusive)

On exit, this function returns the value of \( \tau = 2/ (v^{T} v) \). If n is less than or equal to 1 then this function returns zero without calling the error handler.