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