Function dnrm2_subvec (o2scl_cblas)¶
-
template<class vec_t>
double o2scl_cblas::dnrm2_subvec(const size_t N, const vec_t &X, const size_t ie)¶ Compute the norm of the vector
X
beginning with indexie
and ending with indexN-1
.Used in householder_transform().
If
ie
is greater thanN-1
then the error handler will be called ifO2SCL_NO_RANGE_CHECK
is not defined.Note
The suffix “2” on the function name indicates that this computes the “2-norm”, not that the norm is squared.