|
NAG[f08nec] NAG[nag_dgehrd] - Orthogonal reduction of real general matrix to upper Hessenberg form
|
|
Calling Sequence
f08nec(ilo, ihi, a, tau, 'n'=n, 'fail'=fail)
nag_dgehrd(. . .)
Parameters
|
ilo - integer;
ihi - integer;
|
|
|
On entry: if has been output by f08nhc (nag_dgebal), 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=float[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=float[8]);
|
|
|
Note: the dimension, dim, of the array tau must be at least .
|
|
On exit: further details of the orthogonal 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_dgehrd (f08nec) reduces a real 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 floating-point operations is approximately , where ; if and , the number is approximately .
To form the orthogonal matrix nag_dgehrd (f08nec) may be followed by a call to f08nfc (nag_dorghr):
nag_dorghr (ilo,ihi,a,tau,'n'=n)
To apply to an by real matrix nag_dgehrd (f08nec) may be followed by a call to f08ngc (nag_dormhr). For example,
nag_dormhr ("Nag_LeftSide","Nag_NoTrans",ilo,ihi,a,tau,c,'m'=m,'n'=n)
forms the matrix product .
The complex analogue of this function is f08nsc (nag_zgehrd).
|
|
|
Examples
|
|
>
|
n := 4:
ilo := 1:
ihi := 4:
a := Matrix([[0.35, 0.45, -0.14, -0.17], [0.09, 0.07000000000000001, -0.54, 0.35], [-0.44, -0.33, -0.03, 0.17], [0.25, -0.32, -0.13, 0.11]], datatype=float[8]):
tau := Vector(3, datatype=float[8]):
NAG:-f08nec(ilo, ihi, a, tau, 'n' = n):
|
|
|