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