|
NAG[f08qtc] NAG[nag_ztrexc] - Reorder Schur factorization of complex matrix using unitary similarity transformation
|
|
Calling Sequence
f08qtc(compq, t, q, ifst, ilst, 'n'=n, 'fail'=fail)
nag_ztrexc(. . .)
Parameters
|
compq - String;
|
|
|
On entry: indicates whether the matrix of Schur vectors is to be updated.
|
|
The matrix of Schur vectors is updated.
|
|
No Schur vectors are updated.
|
|
Constraint: "Nag_UpdateSchur" or "Nag_NotQ". .
|
|
|
t - Matrix(1..dim1, 1..dim2, datatype=complex[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 by the updated matrix .
|
|
|
q - Matrix(1..dim1, 1..dim2, datatype=complex[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: if , q contains the updated matrix of Schur vectors.
|
|
If , q is not referenced.
|
|
|
ifst - integer;
ilst - integer;
|
|
|
On entry: ifst and ilst must specify the reordering of the diagonal elements of . The element with row index ifst is moved to row ilst by a sequence of exchanges between adjacent elements.
|
|
Constraint: and . .
|
|
|
'n'=n - integer; (optional)
|
|
|
Default value: the dimension of the array t.
|
|
On entry: , the order of the matrix .
|
|
Constraint: . .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_ztrexc (f08qtc) reorders the Schur factorization of a complex general matrix.
|
|
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_INT_3"
On entry, , , . Constraint: and .
"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 is exactly similar to a matrix , where
and is the machine precision.
The values of the eigenvalues are never changed by the reordering.
|
|
|
Examples
|
|
>
|
compq := "Nag_NotQ":
n := 4:
ifst := 1:
ilst := 4:
t := Matrix([[-6 -7*I , 0.36 -0.36*I , -0.19 +0.48*I , 0.88 -0.25*I ], [0 +0*I , -5 +2*I , -0.03 -0.72*I , -0.23 +0.13*I ], [0 +0*I , 0 +0*I , 8 -1*I , 0.9399999999999999 +0.53*I ], [0 +0*I , 0 +0*I , 0 +0*I , 3 -4*I ]], datatype=complex[8]):
q := Matrix([[0 +0*I ]], datatype=complex[8]):
NAG:-f08qtc(compq, t, q, ifst, ilst, 'n' = n):
|

|
|