|
NAG[f08gfc] NAG[nag_dopgtr] - Generate orthogonal transformation matrix from reduction to tridiagonal form determined by f08gec (nag_dsptrd)
|
|
Calling Sequence
f08gfc(uplo, ap, tau, q, 'n'=n, 'fail'=fail)
nag_dopgtr(. . .)
Parameters
|
uplo - String;
|
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
ap - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array ap must be at least .
|
|
On entry: details of the vectors which define the elementary reflectors, as returned by f08gec (nag_dsptrd).
|
|
|
tau - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array tau must be at least .
|
|
|
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.
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the dimension of the array ap.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_dopgtr (f08gfc) generates the real orthogonal matrix , which was determined by f08gec (nag_dsptrd) when reducing a 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.
|
|
Accuracy
|
|
The computed matrix differs from an exactly orthogonal matrix by a matrix such that
where is the machine precision.
|
|
Further Comments
|
|
The total number of floating-point operations is approximately .
The complex analogue of this function is f08gtc (nag_zupgtr).
|
|
|
Examples
|
|
>
|
uplo := "Nag_Lower":
n := 4:
ap := Vector([-0.8719237738479123, 3.065514671071713, 6.082006282652207, 0.9717705782198055, 2.871665463430541, -2.200082508804293, -0.2554462546564815, 0.1399401221161594, -2.441925469788134, -1.81], datatype=float[8], order='C_order'):
tau := Vector([0, 1.028627708599706, 1.843596590267241], datatype=float[8]):
q := Matrix(4, 4, datatype=float[8], order='C_order'):
NAG:-f08gfc(uplo, ap, tau, q, 'n' = n):
|
|
|