Function householder_hm_subcol (o2scl_linalg)

O2scl : Function List

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 M when the transformation is stored in a column of M2.

This applies a householder transformation (v,tau) to a lower-right submatrix of M. The submatrix has nr-ir rows and nc-ic columns and starts at row ir of column ic of the original matrix M. The vector containing the transformation is taken from a column of M2 starting at row ir2 and column ic2. The matrix M2 must have at least ic2+1 columns and at least nr-ir+ir2 rows.

This function is used in QR_decomp() and QR_unpack() .