Function householder_transform (o2scl_linalg)¶
-
template<class vec_t>
double o2scl_linalg::householder_transform(const size_t n, vec_t &v)¶ Replace the vector
vwith a Householder vector and a coefficient tau that annihilatesv[1]throughv[n-1](inclusive)On exit, this function returns the value of \( \tau = 2/ (v^{T} v) \). If
nis less than or equal to 1 then this function returns zero without calling the error handler.