f06jj computes the Euclidean norm of a complex vector.

# Syntax

C#
```public static double f06jj(
int n,
Complex[] x,
int incx,
out int ifail
)```
Visual Basic
```Public Shared Function f06jj ( _
n As Integer, _
x As Complex(), _
incx As Integer, _
<OutAttribute> ByRef ifail As Integer _
) As Double```
Visual C++
```public:
static double f06jj(
int n,
array<Complex>^ x,
int incx,
[OutAttribute] int% ifail
)```
F#
```static member f06jj :
n : int *
x : Complex[] *
incx : int *
ifail : int byref -> float
```

#### Parameters

n
Type: System..::..Int32
On entry: $n$, the number of elements in $x$.
x
Type: array<NagLibrary..::..Complex>[]()[][]
An array of size [dim1]
Note: the dimension of the array x must be at least $\mathrm{max}\phantom{\rule{0.125em}{0ex}}\left(1,1+\left({\mathbf{n}}-1\right)×{\mathbf{incx}}\right)$.
On entry: the $n$-element vector $x$. ${x}_{\mathit{i}}$ must be stored in ${\mathbf{x}}\left[1+\left(\mathit{i}-1\right)×{\mathbf{incx}}\right]$, for $\mathit{i}=1,2,\dots ,{\mathbf{n}}$.
Intermediate elements of x are not referenced.
incx
Type: System..::..Int32
On entry: the increment in the subscripts of x between successive elements of $x$.
Constraint: ${\mathbf{incx}}>0$.
ifail
Type: System..::..Int32%
On exit: $\mathbf{ifail}=0$ unless the method detects an error (see [Error Indicators and Warnings]).

#### Return Value

f06jj computes the Euclidean norm of a complex vector.

# Description

f06jj returns the Euclidean norm
 $x2=xHx$
of the $n$-element complex vector $x$ scattered with stride incx.

# References

Lawson C L, Hanson R J, Kincaid D R and Krogh F T (1979) Basic linear algebra supbrograms for Fortran usage ACM Trans. Math. Software 5 308–325

# Error Indicators and Warnings

${\mathbf{ifail}}=-9000$
An error occured, see message report.
${\mathbf{ifail}}=-8000$
Negative dimension for array $〈\mathit{\text{value}}〉$
${\mathbf{ifail}}=-6000$
Invalid Parameters $〈\mathit{\text{value}}〉$
${\mathbf{ifail}}=-6000$
Invalid Parameters $〈\mathit{\text{value}}〉$

Not applicable.

None.