LinearAlgebra`BLAS`
LinearAlgebra`BLAS`

NRM2

NRM2[x]

gives the Euclidean norm of the vector x.

Details

  • To use NRM2, you first need to load the BLAS Package using Needs["LinearAlgebra`BLAS`"].
  • The following argument must be given:
  • xinput expressionvector
  • NRM2[x] is equivalent to Sqrt[x.Conjugate[x]].

Examples

open all close all

Basic Examples  (1)

Load the BLAS package:

In[1]:=
Click for copyable input

Compute the Euclidean norm of a vector:

In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Properties & Relations  (2)