gives the Euclidean norm of the vector x.
- To use NRM2, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
- The following argument must be given:
- NRM2[x] is equivalent to Sqrt[x.Conjugate[x]].
Examplesopen allclose all
Basic Examples (1)
Load the BLAS package:
Compute the Euclidean norm of a vector:
A real vector:
A complex vector:
An arbitrary-precision vector:
A symbolic vector:
Properties & Relations (2)
For a vector x, NRM2[x] is equivalent to Norm[x]:
For a vector x, NRM2[x] is equivalent to Sqrt[x.Conjugate[x]]: