|
NAG[f08ngc] NAG[nag_dormhr] - Apply orthogonal transformation matrix from reduction to Hessenberg form determined by f08nec (nag_dgehrd)
|
|
Calling Sequence
f08ngc(side, trans, ilo, ihi, a, tau, c, 'm'=m, 'n'=n, 'fail'=fail)
nag_dormhr(. . .)
Parameters
|
side - String;
|
|
|
Constraint: "Nag_LeftSide" or "Nag_RightSide". .
|
|
|
trans - String;
|
|
|
Constraint: "Nag_NoTrans" or "Nag_Trans". .
|
|
|
ilo - integer;
ihi - integer;
|
|
|
On entry: these must be the same arguments ilo and ihi, respectively, as supplied to f08nec (nag_dgehrd).
|
|
|
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.
|
|
On entry: details of the vectors which define the elementary reflectors, as returned by f08nec (nag_dgehrd).
|
|
|
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_dormhr (f08ngc) multiplies an arbitrary real matrix by the real orthogonal matrix which was determined by f08nec (nag_dgehrd) when reducing a real general matrix to Hessenberg form.
|
|
Error Indicators and Warnings
|
|
"NE_ALLOC_FAIL"
Dynamic memory allocation failed.
"NE_BAD_PARAM"
On entry, argument had an illegal value.
"NE_ENUM_INT_4"
On entry, , , , , . Constraint: if and , and .
On entry, , , , , . Constraint: if and , .
On entry, , , , , . Constraint: if and , and .
On entry, , , , , . Constraint: if and , .
"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.
|
|
|
Examples
|
|
>
|
side := "Nag_LeftSide":
trans := "Nag_NoTrans":
m := 4:
n := 3:
ilo := 1:
ihi := 4:
a := Matrix([[0.35, -0.1159524296205035, -0.3886010343233214, -0.2941840753473021], [-0.5140038910358559, 0.1224867524602574, 0.1003597896821502, 0.1125618799705319], [-0.728472128292763, 0.644263618527062, -0.1357001717571134, -0.09768162270493334], [0.4139046183481608, -0.1665445794905699, 0.4262443722078448, 0.163213419296856]], datatype=float[8]):
tau := Vector([1.175095950769217, 1.946022972139863, 0], datatype=float[8]):
c := Matrix([[0.3881217837719637, 0.05736203016960316, 0.149321841610792], [-0.01428690112019395, 0.4135233160565422, 0.117945426752373], [0.8119679816025417, 1.522153456593703e-18, -0.6190595172579694], [-0.3958676674181027, -0.6041323325818974, 1]], datatype=float[8]):
NAG:-f08ngc(side, trans, ilo, ihi, a, tau, c, 'm' = m, 'n' = n):
|
|
|