Function dnrm2 (o2scl_cblas)¶
-
template<class vec_t>
double o2scl_cblas::dnrm2(const size_t N, const vec_t &X)¶ Compute the norm of the vector
X.If
Nis less than or equal to zero, this function returns zero without calling the error handler.This function works only with vectors which hold
double. For the norm of a general floating point vector, see vector_norm().Note
The suffix “2” on the function name indicates that this computes the “2-norm”, not that the norm is squared.