Function nrm2_subcol (o2scl_cblas)¶
-
template<class mat_t, class fp_t>
fp_t o2scl_cblas::nrm2_subcol(const mat_t &A, const size_t ir, const size_t ic, const size_t M)¶ Compute the norm of a subcolumn of a matrix.
Given the matrix
A, define the vectorxas the column with indexic. This function computes the norm of the part ofxfrom rowirto row(inclusive). All other elements inxare not referenced.if
Mis zero, then this function silently returns zero without calling the error handler.This function is used in householder_transform_subcol().
Note
The suffix “2” on the function name indicates that this computes the “2-norm”, not that the norm is squared.