Intel® oneAPI Math Kernel Library Developer Reference - C
Computes the Euclidean norm of a vector.
float cblas_snrm2 (const MKL_INT n, const float *x, const MKL_INT incx);
double cblas_dnrm2 (const MKL_INT n, const double *x, const MKL_INT incx);
float cblas_scnrm2 (const MKL_INT n, const void *x, const MKL_INT incx);
double cblas_dznrm2 (const MKL_INT n, const void *x, const MKL_INT incx);
The ?nrm2 routines perform a vector reduction operation defined as
res = ||x||,
where:
x is a vector,
res is a value containing the Euclidean norm of the elements of x.
Specifies the number of elements in vector x.
Array, size at least (1 + (n -1)*abs (incx)).
Specifies the increment for the elements of x.
The Euclidean norm of the vector x.