|
NAG[f08nsc] NAG[nag_zgehrd] - Unitary reduction of complex general matrix to upper Hessenberg form
|
|
Calling Sequence
f08nsc(ilo, ihi, a, tau, 'n'=n, 'fail'=fail)
nag_zgehrd(. . .)
Parameters
|
ilo - integer;
ihi - integer;
|
|
|
On entry: if has been output by f08nvc (nag_zgebal), then ilo and ihi must contain the values returned by that function. Otherwise, ilo must be set to 1 and ihi to n.
|
|
if , ;
|
|
|
a - Matrix(1..dim1, 1..dim2, datatype=complex[8], order=order);
|
|
|
Note: this array may be supplied in Fortran_order or C_order , as specified by order. All array parameters must use a consistent order.
|
|
|
tau - Vector(1..dim, datatype=complex[8]);
|
|
|
Note: the dimension, dim, of the array tau must be at least .
|
|
On exit: further details of the unitary matrix .
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the dimension of the array a.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_zgehrd (f08nsc) reduces a complex general matrix to Hessenberg form.
|
|
Error Indicators and Warnings
|
|
"NE_ALLOC_FAIL"
Dynamic memory allocation failed.
"NE_BAD_PARAM"
On entry, argument had an illegal value.
"NE_INT"
On entry, . Constraint: .
"NE_INT_3"
On entry, , , . Constraint: if , and .
On entry, , , . Constraint: if , .
"NE_INTERNAL_ERROR"
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please consult NAG for assistance.
|
|
Further Comments
|
|
The total number of real floating-point operations is approximately , where ; if and , the number is approximately .
To form the unitary matrix nag_zgehrd (f08nsc) may be followed by a call to f08ntc (nag_zunghr):
nag_zunghr (ilo,ihi,a,tau,'n'=n)
To apply to an by complex matrix nag_zgehrd (f08nsc) may be followed by a call to f08nuc (nag_zunmhr). For example,
nag_zunmhr ("Nag_LeftSide","Nag_NoTrans",ilo,ihi,a,tau,c,'m'=m,'n'=n)
forms the matrix product .
The real analogue of this function is f08nec (nag_dgehrd).
|
|
|
Examples
|
|
>
|
n := 4:
ilo := 1:
ihi := 4:
a := Matrix([[-3.97 -5.04*I , -4.11 +3.7*I , -0.34 +1.01*I , 1.29 -0.86*I ], [0.34 -1.5*I , 1.52 -0.43*I , 1.88 -5.38*I , 3.36 +0.65*I ], [3.31 -3.85*I , 2.5 +3.45*I , 0.88 -1.08*I , 0.64 -1.48*I ], [-1.1 +0.82*I , 1.81 -1.59*I , 3.25 +1.33*I , 1.57 -3.44*I ]], datatype=complex[8]):
tau := Vector(3, datatype=complex[8]):
NAG:-f08nsc(ilo, ihi, a, tau, 'n' = n):
|

|
|