Contents

cblas_?nrm2

Computes the Euclidean norm of a vector.

Syntax

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
);
Include Files
  • mkl.h
Description
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
.
Input Parameters
n
Specifies the number of elements in vector
x
.
x
Array, size at least
(1 + (
n
-1)*abs (
incx
))
.
incx
Specifies the increment for the elements of
x
.
Return Values
The Euclidean norm of the vector
x
.
1

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reservered for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804