Function vector_norm (o2scl)¶
-
template<class vec_t, class data_t>
data_t o2scl::vector_norm(size_t n, const vec_t &x)¶ Compute the norm of the first
n
entries of a vector of floating-point (single or double precision) numbers.This function is a more generic version of o2scl_cblas::dnrm2 .