|
NAG[f08hsc] NAG[nag_zhbtrd] - Unitary reduction of complex Hermitian band matrix to real symmetric tridiagonal form
|
|
Calling Sequence
f08hsc(vect, uplo, kd, ab, d, e, q, 'n'=n, 'fail'=fail)
nag_zhbtrd(. . .)
Parameters
|
uplo - String;
|
|
|
On entry: indicates whether the upper or lower triangular part of is stored.
|
|
The upper triangular part of is stored.
|
|
The lower triangular part of is stored.
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
kd - integer;
|
|
|
Constraint: . .
|
|
|
ab - 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.
|
|
On exit: is overwritten.
|
|
|
d - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array d must be at least .
|
|
On exit: the diagonal elements of the tridiagonal matrix .
|
|
|
e - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array e must be at least .
|
|
On exit: the off-diagonal elements of the tridiagonal matrix .
|
|
|
q - 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.
|
|
On entry: if , q must contain the matrix formed in a previous stage of the reduction (for example, the reduction of a banded Hermitian-definite generalized eigenproblem); otherwise q need not be set.
|
|
If , q is not referenced.
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the dimension of the array ab.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_zhbtrd (f08hsc) reduces a complex Hermitian band matrix to tridiagonal form.
|
|
Description
|
|
nag_zhbtrd (f08hsc) reduces a Hermitian band matrix to real symmetric tridiagonal form by a unitary similarity transformation:
The unitary matrix is determined as a product of Givens rotation matrices, and may be formed explicitly by the function if required.
The function uses a vectorizable form of the reduction, due to Kaufman (1984).
|
|
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: .
On entry, . Constraint: .
"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 if with additional operations if .
The real analogue of this function is f08hec (nag_dsbtrd).
|
|
|
Examples
|
|
>
|
vect := "Nag_FormQ":
uplo := "Nag_Lower":
n := 4:
kd := 2:
ab := Matrix([[0 +0*I , 0 +0*I , -3.13 +0*I , 0 +0*I ], [1.94 +2.1*I , -1.91 +0*I , -3.4 -0.25*I , -0.82 +0.89*I ], [-2.87 +0*I , -0.67 -0.34*I , -2.1 +0.16*I , 0.5 +0*I ]], datatype=complex[8], order='C_order'):
d := Vector(4, datatype=float[8]):
e := Vector(3, datatype=float[8]):
q := Matrix([[0 +0*I , 0 +0*I , 0 +0*I , 0 +0*I ], [0 +0*I , 0 +0*I , 0 +0*I , 0 +0*I ], [0 +0*I , 0 +0*I , 0 +0*I , 0 +0*I ], [0 +0*I , 0 +0*I , 0 +0*I , 0 +0*I ]], datatype=complex[8], order='C_order'):
NAG:-f08hsc(vect, uplo, kd, ab, d, e, q, 'n' = n):
|


|
|