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 vectorx
as the column with indexic
. This function computes the norm of the part ofx
from rowir
to row(inclusive). All other elements in
x
are not referenced.if
M
is 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.