|
NAG[f08fec] NAG[nag_dsytrd] - Orthogonal reduction of real symmetric matrix to symmetric tridiagonal form
|
|
Calling Sequence
f08fec(uplo, a, d, e, tau, 'n'=n, 'fail'=fail)
nag_dsytrd(. . .)
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". .
|
|
|
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.
|
|
If , the upper triangular part of must be stored and the elements of the array below the diagonal are not referenced.
|
|
If , the lower triangular part of must be stored and the elements of the array above the diagonal are not referenced.
|
|
On exit: a is overwritten by the tridiagonal matrix and details of the orthogonal matrix as specified by uplo.
|
|
|
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 .
|
|
|
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_dsytrd (f08fec) reduces a real symmetric matrix to tridiagonal 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_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 .
To form the orthogonal matrix nag_dsytrd (f08fec) may be followed by a call to f08ffc (nag_dorgtr):
nag_dorgtr (uplo,a,tau,'n'=n)
To apply to an by real matrix nag_dsytrd (f08fec) may be followed by a call to f08fgc (nag_dormtr). For example,
nag_dormtr ("Nag_LeftSide",uplo,"Nag_NoTrans",a,tau,c,'m'=n,'n'=p)
forms the matrix product .
The complex analogue of this function is f08fsc (nag_zhetrd).
|
|
|
Examples
|
|
>
|
uplo := "Nag_Lower":
n := 4:
a := Matrix([[2.07, 0, 0, 0], [3.87, -0.21, 0, 0], [4.2, 1.87, 1.15, 0], [-1.15, 0.63, 2.06, -1.81]], datatype=float[8]):
d := Vector(4, datatype=float[8]):
e := Vector(3, datatype=float[8]):
tau := Vector(3, datatype=float[8]):
NAG:-f08fec(uplo, a, d, e, tau, 'n' = n):
|
|
|