Function householder_hm_subcol (o2scl_linalg)¶
-
template<class mat_t>
void o2scl_linalg::householder_hm_subcol(mat_t &M, const size_t ir, const size_t ic, const size_t nr, const size_t nc, const mat_t &M2, const size_t ir2, const size_t ic2, double tau)¶ Apply a Householder transformation to the lower-right part of
Mwhen the transformation is stored in a column ofM2.This applies a householder transformation
(v,tau)to a lower-right submatrix ofM. The submatrix hasnr-irrows andnc-iccolumns and starts at rowirof columnicof the original matrixM. The vector containing the transformation is taken from a column ofM2starting at rowir2and columnic2. The matrixM2must have at leastic2+1columns and at leastnr-ir+ir2rows.This function is used in QR_decomp() and QR_unpack() .