|
NAG[f08hec] NAG[nag_dsbtrd] - Orthogonal reduction of real symmetric band matrix to symmetric tridiagonal form
|
|
Calling Sequence
f08hec(vect, uplo, kd, ab, d, e, q, 'n'=n, 'fail'=fail)
nag_dsbtrd(. . .)
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=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.
|
|
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=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.
|
|
On entry: if , q must contain the matrix formed in a previous stage of the reduction (for example, the reduction of a banded symmetric-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_dsbtrd (f08hec) reduces a real symmetric band matrix to tridiagonal form.
|
|
Description
|
|
nag_dsbtrd (f08hec) reduces a symmetric band matrix to symmetric tridiagonal form by an orthogonal similarity transformation:
The orthogonal 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 floating-point operations is approximately if with additional operations if .
The complex analogue of this function is f08hsc (nag_zhbtrd).
|
|
|
Examples
|
|
>
|
vect := "Nag_FormQ":
uplo := "Nag_Lower":
n := 4:
kd := 2:
ab := Matrix([[0, 0, 4.99, 0], [0.04, 1.05, 0.22, -0.79], [-2.31, 1.04, -1.3, -0.43]], datatype=float[8], order='C_order'):
d := Vector(4, datatype=float[8]):
e := Vector(3, datatype=float[8]):
q := Matrix([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]], datatype=float[8], order='C_order'):
NAG:-f08hec(vect, uplo, kd, ab, d, e, q, 'n' = n):
|
|
|