|
|
◆ dnrm2()
| double dnrm2 |
( |
int |
n, |
|
|
double |
x[], |
|
|
int |
incx |
|
) |
| |
||x||2 (2-norm) (BLAS 1)
- Purpose
- This routine computes the Euclidean norm of a vector (2-norm).
- Returns
- Euclidean norm of a vector x (= sqrt(x^T*x)) (2-norm).
- Parameters
-
| [in] | n | Number of elements in vector x. (If n <= 0, returns 0) |
| [in] | x[] | Array x[lx] (lx >= 1 + (n - 1)*incx)
Input vector x. |
| [in] | incx | Storage spacing between elements of x. (If incx <= 0, returns 0) |
- Reference
- BLAS
|