9.199. NORM2

9.199 NORM2 — Euclidean vector norms

Description:
Calculates the Euclidean vector norm (L_2 norm) of of ARRAY along dimension DIM.
Standard:
Fortran 2008 and later
Class:
Transformational function
Syntax:
RESULT = NORM2(ARRAY[, DIM])
Arguments:
ARRAY Shall be an array of type REAL
DIM (Optional) shall be a scalar of type INTEGER with a value in the range from 1 to n, where n equals the rank of ARRAY.
Return value:
The result is of the same type as ARRAY.

If DIM is absent, a scalar with