|
NAG[f08ggc] NAG[nag_dopmtr] - Apply orthogonal transformation determined by f08gec (nag_dsptrd)
|
|
Calling Sequence
f08ggc(side, uplo, trans, ap, tau, c, 'm'=m, 'n'=n, 'fail'=fail)
nag_dopmtr(. . .)
Parameters
|
side - String;
|
|
|
Constraint: "Nag_LeftSide" or "Nag_RightSide". .
|
|
|
uplo - String;
|
|
|
Constraint: "Nag_Upper" or "Nag_Lower". .
|
|
|
trans - String;
|
|
|
Constraint: "Nag_NoTrans" or "Nag_Trans". .
|
|
|
ap - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array ap must be at least
|
|
when ;
|
|
when .
|
|
On entry: details of the vectors which define the elementary reflectors, as returned by f08gec (nag_dsptrd).
|
|
On exit: is used as internal workspace prior to being restored and hence is unchanged.
|
|
|
tau - Vector(1..dim, datatype=float[8]);
|
|
|
Note: the dimension, dim, of the array tau must be at least
|
|
when ;
|
|
when .
|
|
|
c - 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.
|
|
|
'm'=m - integer; (optional)
|
|
|
Default value: the first dimension of the array c.
|
|
Constraint: . .
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the second dimension of the array c.
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_dopmtr (f08ggc) multiplies an arbitrary real matrix by the real orthogonal matrix which was determined by f08gec (nag_dsptrd) when reducing 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: .
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 result differs from the exact result by a matrix such that
where is the machine precision.
|
|
Further Comments
|
|
The total number of floating-point operations is approximately if and if .
The complex analogue of this function is f08guc (nag_zupmtr).
|
|
|
Examples
|
|
>
|
side := "Nag_LeftSide":
uplo := "Nag_Upper":
trans := "Nag_NoTrans":
m := 4:
n := 2:
ap := Vector([2.07, -5.825753170191817, 0.4331793442217867, -0.1186086299654892, 1.474093708197552, 2.624045178795587, 0.806288153277579, -0.6491595075457839, 0.9162727563219193, -1.694934200651768], datatype=float[8], order='C_order'):
tau := Vector([1.664291789738249, 1.212047324162142, 0], datatype=float[8]):
c := Matrix([[0.5657591788223872, -0.2328424308031573], [0.6869179572505917, -0.1626170961491636], [-0.4395889372131648, -0.3017273343882723], [0.1217449705930083, 0.9101102670229791]], datatype=float[8], order='C_order'):
NAG:-f08ggc(side, uplo, trans, ap, tau, c, 'm' = m, 'n' = n):
|
|
|